]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
phy: rockchip-inno-usb2: add a delay after phy resume
authorWilliam Wu <william.wu@rock-chips.com>
Fri, 2 Jun 2017 03:20:23 +0000 (11:20 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 6 Jun 2017 09:20:22 +0000 (14:50 +0530)
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>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c

index 8efe78a49916752f418463c4207058bd6ef3de1b..f12dc8db523072bd85dcff7a1828e75cc4bdc599 100644 (file)
@@ -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;
 }