diff options
author | Chris Ruehl <chris.ruehl@gtsys.com.hk> | 2014-01-10 13:51:30 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-01-16 16:55:22 +0800 |
commit | 6cf1375d32049b7d852131d232ec97e76535a2e0 (patch) | |
tree | 3cceb5a951d1125af5d51b43b418e5f265643899 /drivers | |
parent | ef6d881d31464b60bae2df538ec6074eff6181ae (diff) |
usb: chipidea: put hw_phymode_configure before ci_usb_phy_init
hw_phymode_configure configures the PORTSC registers and allow the
following phy_inits to operate on the right parameters. This fix a problem
where the UPLI (ISP1504) could not be detected, because the Viewport was not
available and read the viewport return 0's only.
Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit fda8a80b7e944ec29f4438d6e6f159f691ae41a6)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/chipidea/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 4c34d7424cb9..5ef0a15605e0 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -609,6 +609,8 @@ 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); @@ -626,8 +628,6 @@ 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 & |