summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorWilliam Wu <william.wu@rock-chips.com>2017-06-02 11:20:23 +0800
committerKishon Vijay Abraham I <kishon@ti.com>2017-06-06 14:50:22 +0530
commitfbbe98cd44508def1c6b7f98d5dc676d23bc9031 (patch)
tree905a3ffcc7c423da80a0e5851428cce8288512c2 /drivers/phy
parent6d6ce40f63af9860ba12e6540fc9c9feb4338a1d (diff)
downloadlinux-fbbe98cd44508def1c6b7f98d5dc676d23bc9031.tar.gz
linux-fbbe98cd44508def1c6b7f98d5dc676d23bc9031.tar.bz2
linux-fbbe98cd44508def1c6b7f98d5dc676d23bc9031.zip
phy: rockchip-inno-usb2: add a delay after phy resume
When resume phy, it need about 1.5 ~ 2ms to wait for utmi_clk which used for USB controller to become stable. Signed-off-by: William Wu <william.wu@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/rockchip/phy-rockchip-inno-usb2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
index 8efe78a49916..f12dc8db5230 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
@@ -463,6 +463,9 @@ static int rockchip_usb2phy_power_on(struct phy *phy)
if (ret)
return ret;
+ /* waiting for the utmi_clk to become stable */
+ usleep_range(1500, 2000);
+
rport->suspended = false;
return 0;
}