]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Nov 2016 12:49:15 +0000 (18:19 +0530)
commitae9fc711d3d0fe62ffeeb83f24e79e08eafd733f
tree9c59e32c3cd566f99425b657b0f4c3baee140cb7
parent98898f3bc83c8a74e562869332cb1b349976a116
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.

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