]> git.baikalelectronics.ru Git - kernel.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)
commitf309250eb8daf526480d7671ecf6c8fe9df71049
tree9c59e32c3cd566f99425b657b0f4c3baee140cb7
parent790bad4f79e09c63b084c0aabbb84f9bf375ffb9
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