linux/drivers/usb/dwc3
William Wu 223064da40 usb: dwc3: fix runtime pm when current_dr_role is not set
The current runtime suspend/resume do nothing when the
current_dr_role is not set. It may fail to do core init
in some scenes.

Test on RK3588 EVB2 or NVR Demo which have Type-A OTG
port, without this patch, the USB ADB enumeration failed
occasionally. When this error happens, we can find that
the register GUSB2PHYCFG(0) isn't initialized correctly.

It's because that during dwc3 probe, if the drd_work which
called from dwc3_drd_init() is scheduled behind the runtime
suspend process, the current_dr_role will be uninitialized,
this cause the runtime resume process doing nothing and put
the dwc3 phy in uninitialized status.

This patch add dwc3_core_init and dwc3_core_exit operation
for runtime suspend/resume when the current_dr_role is not
initialized.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I294bcf2ad68136e9eb24a9e4a1ad389e73c974d2
2022-03-01 16:20:42 +08:00
..
core.c usb: dwc3: fix runtime pm when current_dr_role is not set 2022-03-01 16:20:42 +08:00
core.h usb: dwc3: gadget: get the txfifos depth properly 2022-02-24 15:28:07 +08:00
debug.h usb: dwc3: debugfs: Add and remove endpoint dirs dynamically 2021-06-23 14:42:54 +02:00
debugfs.c usb: dwc3: debugfs: Fix mode switch for rockchip 2021-12-14 15:16:12 +08:00
drd.c usb: dwc3: drd: fix device mode for rockchip platform 2021-12-23 19:32:33 +08:00
dwc3-exynos.c
dwc3-haps.c
dwc3-imx8mp.c
dwc3-keystone.c
dwc3-meson-g12a.c usb: dwc3: meson-g12a: add IRQ check 2021-09-15 09:50:39 +02:00
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c
dwc3-qcom.c This is the 5.10.65 stable release 2021-09-15 14:16:47 +02:00
dwc3-rockchip-inno.c
dwc3-st.c
ep0.c UPSTREAM: usb: dwc3: ep0: fix NULL pointer exception 2021-10-14 15:34:12 +08:00
gadget.c usb: dwc3: gadget: get the txfifos depth properly 2022-02-24 15:28:07 +08:00
gadget.h
host.c
io.h
Kconfig
Makefile
trace.c
trace.h
ulpi.c