From: Frank Wang Date: Wed, 7 Sep 2016 08:34:35 +0000 (+0800) Subject: phy: rockchip-inno-usb2: correct 480m output clock stable time. X-Git-Tag: firefly_0821_release~1579 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c629d441d0db01fa26b1ae737a1b72765d18035f;p=firefly-linux-kernel-4.4.55.git 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 --- 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;