From c629d441d0db01fa26b1ae737a1b72765d18035f Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Wed, 7 Sep 2016 16:34:35 +0800 Subject: [PATCH] phy: rockchip-inno-usb2: correct 480m output clock stable time. We found that the system on rk3366 SoC was crashed due to 480m output clock of usb-phy was unstable after clock had been enabled by gpu module. Theoretically, 1 millisecond is a critical value for 480 output clock stable time, so we try changing the delay time to 1.2 millisecond to avoid this issue. Change-Id: I8790eb3d7fccc9fbaa7b49f8d4386df147a95b75 Signed-off-by: Frank Wang --- drivers/phy/phy-rockchip-inno-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-rockchip-inno-usb2.c b/drivers/phy/phy-rockchip-inno-usb2.c index 84db228f945d..4b07f2092fe2 100644 --- a/drivers/phy/phy-rockchip-inno-usb2.c +++ b/drivers/phy/phy-rockchip-inno-usb2.c @@ -273,7 +273,7 @@ static int rockchip_usb2phy_clk480m_enable(struct clk_hw *hw) return ret; /* waitting for the clk become stable */ - mdelay(1); + udelay(1200); } return 0; -- 2.34.1