linux-stable/drivers/usb/host
Alan Stern feca7746d5 USB: EHCI: don't check DMA values in QH overlays
This patch (as1661) fixes a rather obscure bug in ehci-hcd.  In a
couple of places, the driver compares the DMA address stored in a QH's
overlay region with the address of a particular qTD, in order to see
whether that qTD is the one currently being processed by the hardware.
(If it is then the status in the QH's overlay region is more
up-to-date than the status in the qTD, and if it isn't then the
overlay's value needs to be adjusted when the QH is added back to the
active schedule.)

However, DMA address in the overlay region isn't always valid.  It
sometimes will contain a stale value, which may happen by coincidence
to be equal to a qTD's DMA address.  Instead of checking the DMA
address, we should check whether the overlay region is active and
valid.  The patch tests the ACTIVE bit in the overlay, and clears this
bit when the overlay becomes invalid (which happens when the
currently-executing URB is unlinked).

This is the second part of a fix for the regression reported at:

	https://bugs.launchpad.net/bugs/1088733

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Reported-and-tested-by: Stephen Thirlwall <sdt@dr.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-05 08:45:33 +08:00
..
whci
bcma-hcd.c
ehci-atmel.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-dbg.c
ehci-fsl.c USB: ehci-fsl: fix regression on mpc5121e 2013-01-11 16:01:07 -08:00
ehci-fsl.h
ehci-grlib.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-hcd.c USB: EHCI: work around silicon bug in Intel's EHCI controllers 2013-03-05 08:45:33 +08:00
ehci-hub.c USB: EHCI: fix timer bug affecting port resume 2013-01-25 15:06:01 -08:00
ehci-mem.c
ehci-msm.c
ehci-mv.c usb: gadget: patches for v3.9 merge window 2013-01-25 09:08:05 -08:00
ehci-mxc.c USB patches for 3.9-rc1 2013-02-21 12:20:00 -08:00
ehci-octeon.c
ehci-omap.c This is the MFD pull request for the 3.9 merge window. 2013-02-24 20:00:58 -08:00
ehci-orion.c Revert "USB: EHCI: make ehci-orion a separate driver" 2013-02-20 10:25:44 -08:00
ehci-pci.c USB: ehci: make debug port in-use detection functional again 2013-01-07 10:34:33 -08:00
ehci-platform.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-pmcmsp.c
ehci-ppc-of.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-ps3.c
ehci-q.c USB: EHCI: don't check DMA values in QH overlays 2013-03-05 08:45:33 +08:00
ehci-s5p.c usb: xceiv: patches for v3.9 merge window 2013-01-25 09:09:46 -08:00
ehci-sched.c USB: EHCI: fix bug in scheduling periodic split transfers 2013-01-31 10:14:48 +01:00
ehci-sead3.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-sh.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci-spear.c
ehci-sysfs.c
ehci-tegra.c usb: host: tegra: make use of PHY pointer of HCD 2013-01-28 11:42:11 -07:00
ehci-tilegx.c
ehci-timer.c USB: EHCI: revert "remove ASS/PSS polling timeout" 2013-02-26 13:22:38 -08:00
ehci-vt8500.c Revert "USB: EHCI: make ehci-vt8500 a separate driver" 2013-02-20 10:26:31 -08:00
ehci-w90x900.c
ehci-xilinx-of.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ehci.h USB: EHCI: add a name for the platform-private field 2013-01-22 09:22:13 -08:00
fhci-dbg.c
fhci-hcd.c
fhci-hub.c
fhci-mem.c
fhci-q.c
fhci-sched.c
fhci-tds.c
fhci.h
fsl-mph-dr-of.c USB: fsl-mph-dr-of: fix regression on mpc5121e 2013-01-11 16:01:06 -08:00
hwa-hc.c
imx21-dbg.c
imx21-hcd.c usb: imx21-hcd: Include missing linux/module.h 2013-01-11 12:01:09 -08:00
imx21-hcd.h
isp116x-hcd.c
isp116x.h
isp1362-hcd.c
isp1362.h
isp1760-hcd.c usb/isp1760: declare schedule_ptds() and errata2_function() static 2013-01-30 00:17:38 -05:00
isp1760-hcd.h
isp1760-if.c
Kconfig Revert "USB: EHCI: make ehci-vt8500 a separate driver" 2013-02-20 10:26:31 -08:00
Makefile Revert "USB: EHCI: make ehci-vt8500 a separate driver" 2013-02-20 10:26:31 -08:00
octeon2-common.c
ohci-at91.c
ohci-da8xx.c
ohci-dbg.c
ohci-ep93xx.c
ohci-exynos.c usb: xceiv: patches for v3.9 merge window 2013-01-25 09:09:46 -08:00
ohci-hcd.c
ohci-hub.c
ohci-jz4740.c
ohci-mem.c
ohci-nxp.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ohci-octeon.c
ohci-omap.c
ohci-omap3.c
ohci-pci.c
ohci-platform.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ohci-ppc-of.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c USB: ohci: set urb->hcpriv = NULL immediately, after free it 2013-01-11 16:03:38 -08:00
ohci-s3c2410.c usb: Convert to devm_ioremap_resource() 2013-01-22 11:41:58 -08:00
ohci-sa1111.c
ohci-sm501.c
ohci-spear.c
ohci-tilegx.c
ohci-tmio.c usb: host: ohci-tmio: fix compile warning 2013-01-11 16:22:53 -08:00
ohci.h
oxu210hp-hcd.c
oxu210hp.h
pci-quirks.c usb: Prevent dead ports when xhci is not enabled 2013-01-24 09:56:19 -08:00
pci-quirks.h
r8a66597-hcd.c
r8a66597.h
sl811-hcd.c
sl811.h
sl811_cs.c
ssb-hcd.c
u132-hcd.c
uhci-debug.c USB: uhci: beautify source code 2013-01-24 13:59:26 -08:00
uhci-grlib.c
uhci-hcd.c Merge 3.8-rc5 into usb-next 2013-01-25 12:41:02 -08:00
uhci-hcd.h USB: UHCI: remove unused definition 2013-01-24 13:42:09 -08:00
uhci-hub.c Merge usb-linus branch into usb-next 2013-02-08 12:03:11 -08:00
uhci-pci.c
uhci-platform.c
uhci-q.c USB: uhci: check buffer length to avoid memory overflow 2013-01-24 13:42:09 -08:00
xhci-dbg.c
xhci-ext-caps.h
xhci-hub.c
xhci-mem.c
xhci-pci.c
xhci-plat.c
xhci-ring.c Merge usb-linus branch into usb-next 2013-02-08 12:03:11 -08:00
xhci.c
xhci.h