mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
usb: dwc3: core: fix runtime suspend at probe
Just put runtime suspend synchronously for otg mode at dwc3 probe time.
We found that the USB3.0 HUB which integrated in rk3399-evb-ind board
could not be enumerated at the system boot time, and the reason is
the USB controller has been suspended when the HUB gets ready.
Fixes: d8b7417bea ("usb: dwc3: core: allow pm runtime for rockchip platform")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I19600f327d97cb992994d280645a00069dc9e8d2
This commit is contained in:
@@ -1661,7 +1661,8 @@ static int dwc3_probe(struct platform_device *pdev)
|
||||
|
||||
dwc3_debugfs_init(dwc);
|
||||
|
||||
if (of_device_is_compatible(dev->parent->of_node,
|
||||
if (dwc->dr_mode == USB_DR_MODE_OTG &&
|
||||
of_device_is_compatible(dev->parent->of_node,
|
||||
"rockchip,rk3399-dwc3")) {
|
||||
pm_runtime_allow(dev);
|
||||
pm_runtime_put_sync_suspend(dev);
|
||||
|
||||
Reference in New Issue
Block a user