]> 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)
commitb0cdb33f7c5ace5609f63d85df34f5e63fa262a7
tree5da0d924d671ffcd059aac014aab990ee499a7f0
parent4b334a65369be36ee55758dc198154c20d226294
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