forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/usb/host/ohci-platform.c
....@@ -111,10 +111,8 @@
111111 return err;
112112
113113 irq = platform_get_irq(dev, 0);
114
- if (irq < 0) {
115
- dev_err(&dev->dev, "no irq provided");
114
+ if (irq < 0)
116115 return irq;
117
- }
118116
119117 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev,
120118 dev_name(&dev->dev));
....@@ -301,6 +299,11 @@
301299 }
302300
303301 ohci_resume(hcd, false);
302
+
303
+ pm_runtime_disable(dev);
304
+ pm_runtime_set_active(dev);
305
+ pm_runtime_enable(dev);
306
+
304307 return 0;
305308 }
306309 #endif /* CONFIG_PM_SLEEP */