]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: nop: Defer clock prepare until PHY init
authorMark Brown <broonie@linaro.org>
Sun, 11 Aug 2013 14:26:04 +0000 (15:26 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:31:10 +0000 (09:31 -0500)
commitbe5042015ba899f83e9608e49366b7ebea97be08
tree5da0d924d671ffcd059aac014aab990ee499a7f0
parent065f53a8c7da184ea1803e0dbc86865d5e221b37
usb: phy: nop: Defer clock prepare until PHY init

Since we only enable the PHY clock on init and the PHY init and shutdown
does not occur in atomitc context there is no need to prepare the clock
before it is enabled.  Move the clk_prepare() operations to go along
with the enables, allowing the clock to be fully idle when not in use.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-am335x.c
drivers/usb/phy/phy-generic.c
drivers/usb/phy/phy-generic.h