mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
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 |
||
|---|---|---|
| .. | ||
| atm | ||
| c67x00 | ||
| cdns3 | ||
| chipidea | ||
| class | ||
| common | ||
| core | ||
| dwc2 | ||
| dwc3 | ||
| early | ||
| gadget | ||
| host | ||
| image | ||
| isp1760 | ||
| misc | ||
| mon | ||
| mtu3 | ||
| musb | ||
| phy | ||
| renesas_usbhs | ||
| roles | ||
| serial | ||
| storage | ||
| typec | ||
| usbip | ||
| Kconfig | ||
| Makefile | ||
| usb-skeleton.c | ||