]> git.hungrycats.org Git - linux/commit
[PATCH] USB: usb enumeration clears full speed ep0 state
authorDavid Brownell <david-b@pacbell.net>
Thu, 23 Oct 2003 15:07:41 +0000 (08:07 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 23 Oct 2003 15:07:41 +0000 (08:07 -0700)
commitc1ac1e59f7dee5ee8dabd452152bd420f0eb5965
treed071d32c1039a7d0054b8b2c7e1ca20f771f6c4c
parentf1aa095a961e88cbce4044b49994bdf41bdc35e7
[PATCH] USB: usb enumeration clears full speed ep0 state

This resolves a bug that was recently reported to me by someone
enumerating a USB 1.1 modem through a high speed hub.  I'm a bit
surprised we never saw it before; I think cache/dma timings must
usually be strongly in our favor.

The problem was that the HC was still using the old ep0 maxpacket
value, so when it received an 18 byte device descriptor it would
report a packet overrun and enumeration would fail.  The fix is
straightforward:  invalidate the HC's old endpoint state when we
change the full speed maxpacket size.  (And eventually, we can
remove EHCI and OHCI code coping with usbcore not doing this.)
drivers/usb/core/usb.c