linux-stable/drivers/usb/dwc3
Luke Lu c564d4f91a usb: dwc3: meson-g12a: do post init to fix broken usb after resumption
commit 1fa206bb76 upstream.

Device connected to usb otg port of GXL-based boards can not be
recognised after resumption, doesn't recover even if disconnect and
reconnect the device. dmesg shows it disconnects during resumption.

[   41.492911] usb 1-2: USB disconnect, device number 3
[   41.499346] usb 1-2: unregistering device
[   41.511939] usb 1-2: unregistering interface 1-2:1.0

Calling usb_post_init() will fix this issue, and it's tested and
verified on libretech's aml-s905x-cc board.

Cc: stable@vger.kernel.org # v5.8+
Fixes: c99993376f ("usb: dwc3: Add Amlogic G12A DWC3 glue")
Signed-off-by: Luke Lu <luke.lu@libre.computer>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230809212911.18903-1-luke.lu@libre.computer
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-06 21:27:00 +01:00
..
core.c usb: dwc3: don't reset device side if dwc3 was configured as host-only 2023-08-03 10:24:10 +02:00
core.h Revert "usb: dwc3: core: Enable AutoRetry feature in the controller" 2023-08-03 10:24:10 +02:00
debug.h USB: dwc3: fix memory leak with using debugfs_lookup() 2023-03-11 13:55:36 +01:00
debugfs.c usb: dwc3: debugfs: Resume dwc3 before accessing registers 2023-05-24 17:32:48 +01:00
drd.c
dwc3-am62.c
dwc3-exynos.c
dwc3-haps.c
dwc3-imx8mp.c
dwc3-keystone.c
dwc3-meson-g12a.c usb: dwc3: meson-g12a: do post init to fix broken usb after resumption 2023-09-06 21:27:00 +01:00
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy 2023-08-03 10:24:10 +02:00
dwc3-qcom.c usb: dwc3: qcom: Fix an error handling path in dwc3_qcom_probe() 2023-07-19 16:21:55 +02:00
dwc3-st.c
dwc3-xilinx.c usb: dwc3: xilinx: include linux/gpio/consumer.h 2023-01-12 12:02:34 +01:00
ep0.c
gadget.c usb: dwc3: Properly handle processing of pending events 2023-08-16 18:27:24 +02:00
gadget.h
host.c
io.h
Kconfig usb: dwc3: fix extcon dependency 2023-02-01 08:34:25 +01:00
Makefile
trace.c
trace.h
ulpi.c