]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00303890-1 Revert "usb: chipidea: put hw_phymode_configure before ci_usb_phy_init"
authorPeter Chen <peter.chen@freescale.com>
Tue, 18 Mar 2014 07:58:37 +0000 (15:58 +0800)
committerPeter Chen <peter.chen@freescale.com>
Tue, 18 Mar 2014 08:04:45 +0000 (16:04 +0800)
This reverts commit 6cf1375d32049b7d852131d232ec97e76535a2e0
in order to avoid system hang access portsc without PHY clock.
See: http://marc.info/?l=linux-arm-kernel&m=139350618732108&w=2

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/core.c

index fb38df9356d448f019a1b81bc256706b709642ba..28c0c0f3bf0bd2c0e3165fae0cd757e2015cc8e3 100644 (file)
@@ -610,8 +610,6 @@ static int ci_hdrc_probe(struct platform_device *pdev)
                return -ENODEV;
        }
 
-       hw_phymode_configure(ci);
-
        ret = ci_usb_phy_init(ci);
        if (ret) {
                dev_err(dev, "unable to init phy: %d\n", ret);
@@ -629,6 +627,8 @@ static int ci_hdrc_probe(struct platform_device *pdev)
 
        ci_get_otg_capable(ci);
 
+       hw_phymode_configure(ci);
+
        dr_mode = ci->platdata->dr_mode;
 
        ci->supports_runtime_pm = !!(ci->platdata->flags &