[PATCH] USB ehci: handle earlier endpoint_disable()
commit6b21c2c6cf887025f77cb292891daf305544423d
authorDavid Brownell <david-b@pacbell.net>
Fri, 22 Oct 2004 08:54:23 +0000 (22 01:54 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 22 Oct 2004 08:54:23 +0000 (22 01:54 -0700)
tree49cc5433ea52c1c4fd4c9448a6f7eecf721ea4d1
parentae7e6fe6fc10c5e408f64989d976c9d2cfe02180
[PATCH] USB ehci: handle earlier endpoint_disable()

The recent patch to scrub out ep0 state earlier (to get rid of some of
the enumeration problems that started with about 2.6.6) requires EHCI
to handle endpoint_disable() calls in a slightly different context.

This makes those calls work when an endpoint's QH may still be on the
async schedule, rather than already unlinked.  (The QH stays on the async
schedule for a few milliseconds after it's empty, since it's routine to
issue another request almost immediately.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/host/ehci-hcd.c