phy: rockchip-inno-usb2: correct 480m output clock stable time.
authorFrank Wang <frank.wang@rock-chips.com>
Wed, 7 Sep 2016 08:34:35 +0000 (16:34 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 8 Sep 2016 03:46:35 +0000 (11:46 +0800)
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 <frank.wang@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c

index 84db228f945d98f7dfbcec1658f1b054cff92e9e..4b07f2092fe23676b8ccaf02f0aa5f44c1da769d 100644 (file)
@@ -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;