usb: forbid autosuspend for s5p4418/s5p6818
authorJaewon Kim <jaewon02.kim@samsung.com>
Wed, 12 Sep 2018 11:34:46 +0000 (20:34 +0900)
committerChanho Park <chanho61.park@samsung.com>
Fri, 14 Sep 2018 06:50:44 +0000 (15:50 +0900)
S4P4418 and S5P6818 SoC can not use USB autosuspend because
EHCI and HSIC port shares same PHY.
So, EHCI enters suspend mode, we cannot use HSIC port.

Change-Id: I0a3e1f5edc3e517aa2a984caba2d24257e8cb3b7
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
drivers/usb/core/driver.c

index 0bb380a..aaa1369 100644 (file)
@@ -325,6 +325,12 @@ static int usb_probe_interface(struct device *dev)
        if (driver->supports_autosuspend)
                pm_runtime_enable(dev);
 
+#if (defined(CONFIG_ARCH_S5P4418) || defined(CONFIG_ARCH_S5P6818))
+       /* S5S4418and S5P6818 Soc can not use autosuspend
+        * because EHCI and HSIC share same PHY.
+        */
+       pm_runtime_forbid(dev);
+#endif
        /* If the new driver doesn't allow hub-initiated LPM, and we can't
         * disable hub-initiated LPM, then fail the probe.
         *