phy: rockchip-inno-usb2: correct clk_ops callback
authorWilliam Wu <wulf@rock-chips.com>
Tue, 15 Nov 2016 03:54:06 +0000 (11:54 +0800)
committerWilliam Wu <wulf@rock-chips.com>
Tue, 27 Dec 2016 02:51:30 +0000 (10:51 +0800)
commit3f49b1a0a4ffd0aadabc5b8fd4ae8ff4229192f3
treed06d1971e7700ebe2ae660a34b4344d234c4cc21
parent8fa8918ac264d20a1ad91fbb87978905fe67ede5
phy: rockchip-inno-usb2: correct clk_ops callback

Since we needs to delay ~1ms to wait for 480MHz output clock
of USB2 PHY to become stable after turn on it, the delay time
is pretty long for something that's supposed to be "atomic"
like a clk_enable(). Consider that clk_enable() will disable
interrupt and that a 1ms interrupt latency is not sensible.

The 480MHz output clock should be handled in prepare callbacks
which support gate a clk if the operation may sleep.

Change-Id: I943e17f8a97d1229fefd8c1ada706e0c450c98eb
Signed-off-by: William Wu <wulf@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rockchip-inno-usb2.c