usb: dwc3: core: enable runtime for rockchip platform

Change-Id: I49e3fa207db8aea0355a797b69c9c8a791d2eaa3
Signed-off-by: Jianing Ren <jianing.ren@rock-chips.com>
This commit is contained in:
Jianing Ren
2020-03-31 11:32:07 +08:00
committed by Tao Huang
parent b64974825a
commit 4b5336a3bb

View File

@@ -1614,7 +1614,8 @@ static int dwc3_probe(struct platform_device *pdev)
goto err3;
if (dwc->dr_mode == USB_DR_MODE_OTG &&
of_machine_is_compatible("rockchip,rk3399")) {
of_device_is_compatible(dev->parent->of_node,
"rockchip,rk3399-dwc3")) {
pm_runtime_allow(dev);
dwc->en_runtime = true;
}