android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Petazzoni 5e8ca8c79f usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling
commit b65ba0c362be665192381cc59e3ac3ef6f0dd1e1 upstream.

In commit 92af4fc6ec33 ("usb: musb: Fix suspend with devices
connected for a64"), the logic to support the
MUSB_QUIRK_B_DISCONNECT_99 quirk was modified to only conditionally
schedule the musb->irq_work delayed work.

This commit badly breaks ECM Gadget on AM335X. Indeed, with this
commit, one can observe massive packet loss:

$ ping 192.168.0.100
...
15 packets transmitted, 3 received, 80% packet loss, time 14316ms

Reverting this commit brings back a properly functioning ECM
Gadget. An analysis of the commit seems to indicate that a mistake was
made: the previous code was not falling through into the
MUSB_QUIRK_B_INVALID_VBUS_91, but now it is, unless the condition is
taken.

Changing the logic to be as it was before the problematic commit *and*
only conditionally scheduling musb->irq_work resolves the regression:

$ ping 192.168.0.100
...
64 packets transmitted, 64 received, 0% packet loss, time 64475ms

Fixes: 92af4fc6ec33 ("usb: musb: Fix suspend with devices connected for a64")
Cc: [email protected]
Tested-by: Alexandre Belloni <[email protected]>
Tested-by: Drew Fustini <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-06-16 11:59:41 +02:00
..
atm
c67x00
cdns3 usb: cdns3: Fix runtime PM imbalance on error 2021-06-16 11:59:33 +02:00
chipidea usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() 2021-01-12 20:16:18 +01:00
class cdc-wdm: untangle a circular dependency between callback and softint 2021-05-19 10:08:31 +02:00
common
core usb: core: reduce power-on-good delay time of root hub 2021-06-03 08:59:16 +02:00
dwc2 usb: dwc2: Fix build in periphal-only mode 2021-06-10 13:37:11 +02:00
dwc3 usb: dwc3: ep0: fix NULL pointer exception 2021-06-16 11:59:41 +02:00
early
gadget usb: f_ncm: only first packet of aggregate needs to start timer 2021-06-16 11:59:41 +02:00
host usb: sl811-hcd: improve misleading indentation 2021-05-22 11:38:27 +02:00
image
isp1760
misc USB: trancevibrator: fix control-request direction 2021-06-03 08:59:04 +02:00
mon
mtu3 usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-30 11:50:58 +01:00
musb usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling 2021-06-16 11:59:41 +02:00
phy
renesas_usbhs usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM 2021-03-17 17:03:50 +01:00
roles
serial USB: serial: pl2303: add device id for ADLINK ND-6530 GC 2021-06-03 08:59:05 +02:00
storage usb-storage: Add quirk to defeat Kindle's automatic unload 2021-03-24 11:26:40 +01:00
typec usb: typec: tcpm: Fix error while calculating PPS out values 2021-05-19 10:08:33 +02:00
usbip usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-14 09:44:22 +02:00
Kconfig
Makefile
usb-skeleton.c