diff options
author | William Wu <william.wu@rock-chips.com> | 2017-06-02 05:20:23 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2017-06-06 11:20:22 +0200 |
commit | fbbe98cd44508def1c6b7f98d5dc676d23bc9031 (patch) | |
tree | 905a3ffcc7c423da80a0e5851428cce8288512c2 /drivers/phy | |
parent | phy: cpcap-usb: Add CPCAP PMIC USB support (diff) | |
download | linux-fbbe98cd44508def1c6b7f98d5dc676d23bc9031.tar.xz 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.c | 3 |
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; } |