WSL2-Linux-Kernel/drivers/usb/musb
Felipe Balbi be9d39881f usb: musb: host: rely on port_mode to call musb_start()
Currently, we're calling musb_start() twice for DRD ports
in some situations. This has been observed to cause enumeration
issues after suspend/resume cycles with AM335x.

In order to fix the problem, we just have to fix the check
on musb_has_gadget() so that it only returns true if
current mode is Host and ignore the fact that we have or
not a gadget driver loaded.

Fixes: ae44df2e21 (usb: musb: call musb_start() only once in OTG mode)
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: <stable@vger.kernel.org> # v3.11+
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-07-06 12:34:07 -05:00
..
Kconfig usb: musb: fix Kconfig regression 2015-03-09 10:44:35 -05:00
Makefile
am35x.c usb: musb: am35x: fix build warnings 2015-05-27 12:29:57 -05:00
blackfin.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
blackfin.h
cppi_dma.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
cppi_dma.h
da8xx.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
davinci.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
davinci.h
jz4740.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
musb_am335x.c
musb_core.c Merge 4.1-rc7 into usb-next 2015-06-08 10:57:51 -07:00
musb_core.h usb: musb: Make busctl_offset an io-op rather then a define 2015-05-26 10:46:54 -05:00
musb_cppi41.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
musb_debug.h
musb_debugfs.c usb: musb: add softconnect for host mode 2015-05-07 13:49:23 -05:00
musb_dma.h usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
musb_dsps.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
musb_gadget.c usb: musb: Remove DMA ifdef for musb_gadget.c short_packet 2015-05-07 13:36:02 -05:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: gadget: use common is_selfpowered 2015-01-29 10:35:43 -06:00
musb_host.c usb: musb: Make busctl_offset an io-op rather then a define 2015-05-26 10:46:54 -05:00
musb_host.h
musb_io.h usb: musb: Make busctl_offset an io-op rather then a define 2015-05-26 10:46:54 -05:00
musb_regs.h usb: musb: Make busctl_offset an io-op rather then a define 2015-05-26 10:46:54 -05:00
musb_virthub.c usb: musb: host: rely on port_mode to call musb_start() 2015-07-06 12:34:07 -05:00
musbhsdma.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
musbhsdma.h
omap2430.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
omap2430.h
tusb6010.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
tusb6010.h usb: musb: Fix up DMA related macros 2015-05-07 13:35:46 -05:00
tusb6010_omap.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00
ux500.c usb: musb: ux500: fix build warnings 2015-05-27 12:30:20 -05:00
ux500_dma.c usb: musb: Set up function pointers for DMA 2015-05-07 13:35:51 -05:00