public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] usb: Keep async schedule running only across mass storage xfers
Date: Fri, 10 Apr 2020 08:40:07 -0400	[thread overview]
Message-ID: <20200410124007.GK8031@bill-the-cat> (raw)
In-Reply-To: <20200410082120.7b79955a@jawa>

On Fri, Apr 10, 2020 at 08:21:20AM +0200, Lukasz Majewski wrote:
> On Thu, 9 Apr 2020 19:23:26 -0400
> Tom Rini <trini@konsulko.com> wrote:
> 
> > On Mon, Apr 06, 2020 at 02:29:44PM +0200, Marek Vasut wrote:
> > 
> > > Rather than keeping the asynchronous schedule running always, keep
> > > it running only across USB mass storage transfers for now, as it
> > > seems that keeping it running all the time interferes with certain
> > > control transfers during device enumeration.
> > > 
> > > Note that running the async schedule all the time should not be an
> > > issue, especially on EHCI HCD, as that one implements most of the
> > > transfers using async schedule.
> > > 
> > > Note that we have usb_disable_asynch(), which however is utterly
> > > broken. The usb_disable_asynch() blocks the USB core from doing
> > > async transfers by setting a global flag. The async schedule should
> > > however be disabled per USB controller. Moreover, setting a global
> > > flag does not prevent the controller from using the async schedule,
> > > which e.g. the EHCI HCD does.
> > > 
> > > This patch implements additional callback to the controller, which
> > > permits it to lock the async schedule and keep it running across
> > > multiple transfers. Once the schedule is unlocked, it must also be
> > > disabled. This thus prevents the async schedule from running outside
> > > of the USB mass storage transfers.
> > > 
> > > Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> > > Cc: Lukasz Majewski <lukma@denx.de>
> > > Cc: Tom Rini <trini@konsulko.com>
> > > Tested-by: Tom Rini <trini@konsulko.com> [omap3_beagle, previously
> > > failing]  
> > 
> > Applied to u-boot/master, thanks!
> > 
> 
> It is a really short time between posting the patch (Monday) and being
> applied (midnight on Friday).
> 
> It is the Pre-Easter period with some other world-wide issues... and not
> all of us have enough time now to review and test patches.

So, I took this patch at this point in the cycle as it fixes a
regression that we've had reported for a while and because the custodian
asked me to grab it directly.  All things considered, it is unlikely to
make the situation worse and may fix some of the other regressions we've
had in the area.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200410/f9e645c8/attachment.sig>

      reply	other threads:[~2020-04-10 12:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 12:29 [PATCH] usb: Keep async schedule running only across mass storage xfers Marek Vasut
2020-04-06 12:35 ` Tom Rini
2020-04-09 23:23 ` Tom Rini
2020-04-10  6:21   ` Lukasz Majewski
2020-04-10 12:40     ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200410124007.GK8031@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox