From: William Wu Date: Fri, 2 Jun 2017 03:20:23 +0000 (+0800) Subject: phy: rockchip-inno-usb2: add a delay after phy resume X-Git-Tag: v4.13-rc1~185^2~25^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fbbe98cd44508def1c6b7f98d5dc676d23bc9031;p=karo-tx-linux.git 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 Signed-off-by: Frank Wang Signed-off-by: Kishon Vijay Abraham I --- 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; }