mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user