linux-stable/drivers/usb/gadget/udc
Douglas Gilbert d134c48d88 usb: gadget: atmel_usba_udc: Expose correct device speed
Following changes that appeared in lk 4.0.0, the gadget udc driver for
some ARM based Atmel SoCs (e.g. at91sam9x5 and sama5d3 families)
incorrectly deduced full-speed USB link speed even when the hardware
had negotiated a high-speed link. The fix is to make sure that the
UDPHS Interrupt Enable Register value does not mask the SPEED bit
in the Interrupt Status Register.

For a mass storage gadget this problem lead to failures when the host
had a USB 3 port with the xhci_hcd driver. If the host was a USB 2
port using the ehci_hcd driver then the mass storage gadget worked
(but probably at a lower speed than it should have).

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: <stable@vger.kernel.org> #4.0+
Fixes: 9870d895ad ("usb: atmel_usba_udc: Mask status with enabled irqs")
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-11-17 11:35:49 -06:00
..
bdc usb: gadget: bdc: fix memory leak 2015-09-30 11:20:21 -05:00
amd5536udc.c usb: gadget: amd5536udc: NULL comparison 2015-10-01 12:40:22 -05:00
amd5536udc.h usb: gadget: amd5536udc: remove unnecessary conditions 2015-10-01 12:40:20 -05:00
at91_udc.c usb: gadget: at91_udc: add ep capabilities support 2015-08-04 12:26:38 -05:00
at91_udc.h usb: gadget: at91_udc: move at91_udc_data in at91_udc.h 2015-09-27 10:54:31 -05:00
atmel_usba_udc.c usb: gadget: atmel_usba_udc: Expose correct device speed 2015-11-17 11:35:49 -06:00
atmel_usba_udc.h usb: gadget: atmel_usba: use endian agnostic IO on ARM 2015-03-19 11:28:16 -05:00
bcm63xx_udc.c usb: gadget: bcm63xx_udc: add ep capabilities support 2015-08-04 12:26:39 -05:00
dummy_hcd.c usb: gadget: dummy_hcd: replace timeval with timespec64 2015-09-27 10:54:31 -05:00
fotg210-udc.c usb: gadget: fotg210-udc: add ep capabilities support 2015-08-04 12:26:41 -05:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c usb: gadget: fsl_qe_udc: add ep capabilities support 2015-08-04 12:26:42 -05:00
fsl_qe_udc.h
fsl_udc_core.c usb: gadget: fsl_udc_core: add ep capabilities support 2015-08-04 12:26:43 -05:00
fsl_usb2_udc.h
fusb300_udc.c usb: gadget: fusb300_udc: add ep capabilities support 2015-08-04 12:26:44 -05:00
fusb300_udc.h usb: gadget: fusb300_udc.h: Fix typo in include guard 2014-09-03 09:15:57 -05:00
goku_udc.c usb: gadget: goku_udc: add goku_match_ep() function 2015-08-06 09:34:46 -05:00
goku_udc.h
gr_udc.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
gr_udc.h usb: gadget: gr_udc: Add bounce buffer to handle odd sized OUT requests 2014-09-16 10:01:45 -05:00
Kconfig usb: gadget: at91_udc: mention proper dependency 2015-10-01 12:40:23 -05:00
lpc32xx_udc.c usb: gadget: lpc32xx_udc: add ep capabilities support 2015-08-04 12:26:46 -05:00
m66592-udc.c usb: gadget: m66592-udc: add ep capabilities support 2015-08-04 12:26:46 -05:00
m66592-udc.h
Makefile usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC 2014-11-18 08:47:23 -06:00
mv_u3d.h
mv_u3d_core.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
mv_udc.h
mv_udc_core.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
net2272.c usb: gadget: net2272: add ep capabilities support 2015-08-04 12:26:48 -05:00
net2272.h usb: gadget: net2272: use common is_selfpowered 2015-01-29 10:35:27 -06:00
net2280.c usb: gadget: net2280: restore ep_cfg after defect7374 workaround 2015-10-19 09:25:53 -05:00
net2280.h usb: gadget: net2280: remove fiforegs as it is unused 2015-03-10 15:33:30 -05:00
omap_udc.c usb: gadget: omap_udc: add ep capabilities support 2015-08-04 12:26:50 -05:00
omap_udc.h
pch_udc.c usb: gadget: fix a trivial typo 2015-10-19 09:20:05 -05:00
pxa25x_udc.c usb: gadget: epautoconf: remove pxa quirk from ep_matches() 2015-08-04 12:27:15 -05:00
pxa25x_udc.h
pxa27x_udc.c usb: gadget: add 'quirk_altset_not_supp' to usb_gadget 2015-07-30 11:43:35 -05:00
pxa27x_udc.h usb: gadget: pxa27x_udc: add ep capabilities support 2015-08-04 12:26:52 -05:00
r8a66597-udc.c usb: gadget: r8a66597-udc: add ep capabilities support 2015-08-04 12:26:53 -05:00
r8a66597-udc.h
s3c-hsudc.c usb: gadget: s3c-hsudc: add ep capabilities support 2015-08-04 12:26:53 -05:00
s3c2410_udc.c usb: gadget: s3c2410_udc: add ep capabilities support 2015-08-04 12:26:54 -05:00
s3c2410_udc.h
udc-core.c usb: patches for v4.3 merge window 2015-08-14 16:41:11 -07:00
udc-xilinx.c usb: gadget: udc-xilinx: add ep capabilities support 2015-08-04 12:26:55 -05:00