alistair23-linux/drivers/usb/host
David Brownell 29c8f6a727 USB: ohci - record data toggle after unlink
This patch fixes a problem with OHCI where canceling bulk or
interrupt URBs may lose track of the right data toggle.  This
seems to be a longstanding bug, possibly dating back to the
Linux 2.4 kernel, which stayed hidden because

 (a) about half the time the data toggle bit was correct;
 (b) canceling such URBs is unusual; and
 (c) the few drivers which cancel these URBs either
      [1] do it only as part of shutting down, or
      [2] have fault recovery logic, which recovers.

For those transfer types, the toggle is normally written back
into the ED when each TD is retired.  But canceling bypasses
the mechanism used to retire TDs ... so on average, half the
time the toggle bit will be invalid after cancelation.

The fix is simple:  the toggle state of any canceled TDs are
propagated back to the ED in the finish_unlinks function.

(Issue found by leonidv11@gmail.com ...)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Leonid <leonidv11@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-03 18:20:36 -07:00
..
ehci-au1xxx.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-dbg.c
ehci-fsl.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-fsl.h
ehci-hcd.c Revert "USB: EHCI: fix performance regression" 2008-05-29 19:43:27 -07:00
ehci-hub.c USB: EHCI: fix remote-wakeup regression 2008-05-29 13:59:04 -07:00
ehci-ixp4xx.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-mem.c
ehci-orion.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-pci.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-ppc-of.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-ppc-soc.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-ps3.c USB: EHCI: suppress unwanted error messages 2008-05-29 13:59:03 -07:00
ehci-q.c Revert "USB: EHCI: fix performance regression" 2008-05-29 19:43:27 -07:00
ehci-sched.c USB: EHCI: fix bug in Iso scheduling 2008-05-29 13:59:04 -07:00
ehci.h USB: ehci - fix timer regression 2008-07-03 18:20:36 -07:00
isp116x-hcd.c
isp116x.h
isp1760-hcd.c USB: isp1760: Assign resource fields before adding hcd 2008-06-11 17:06:33 -07:00
isp1760-hcd.h
isp1760-if.c isp1760-if iomem annotations 2008-06-04 08:06:01 -07:00
Kconfig usb: r8a66597-hcd: Add support for SH7723 USB host 2008-06-09 16:04:12 +09:00
Makefile
ohci-at91.c
ohci-au1xxx.c
ohci-dbg.c
ohci-ep93xx.c
ohci-hcd.c OHCI: Fix problem if SM501 and another platform driver is selected 2008-07-03 18:20:35 -07:00
ohci-hub.c USB: OHCI: work around bogus compiler warning 2008-05-02 10:25:57 -07:00
ohci-lh7a404.c
ohci-mem.c
ohci-omap.c
ohci-pci.c
ohci-pnx4008.c
ohci-pnx8550.c
ohci-ppc-of.c
ohci-ppc-soc.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c USB: ohci - record data toggle after unlink 2008-07-03 18:20:36 -07:00
ohci-s3c2410.c
ohci-sa1111.c
ohci-sh.c
ohci-sm501.c usb: fix integer as NULL pointer warnings found by sparse 2008-05-14 10:00:26 -07:00
ohci-ssb.c
ohci.h
pci-quirks.c
pci-quirks.h
r8a66597-hcd.c
r8a66597.h
sl811-hcd.c
sl811.h
sl811_cs.c
u132-hcd.c
uhci-debug.c
uhci-hcd.c USB: UHCI: disable remote wakeup when it's not needed 2008-05-02 10:25:57 -07:00
uhci-hcd.h USB: UHCI: disable remote wakeup when it's not needed 2008-05-02 10:25:57 -07:00
uhci-hub.c
uhci-q.c