linux/drivers/phy
Tony Lindgren c17f0b7eea usb: phy: twl4030-usb: Fix regressions to runtime PM on omaps
commit 96be39ab34 upstream.

Commit 30a70b026b ("usb: musb: fix obex in g_nokia.ko causing kernel
panic") attempted to fix runtime PM handling for PHYs that are on the
I2C bus. Commit 3063a12be2 ("usb: musb: fix PHY power on/off") then
changed things around to enable of PHYs that rely on runtime PM.

These changes however broke idling of the PHY and causes at least
100 mW extra power consumption on omaps, which is a lot with
the idle power consumption being below 10 mW range on many devices.

As calling phy_power_on/off from runtime PM calls in the USB
causes complicated issues with I2C connected PHYs, let's just let
the PHY do it's own runtime PM as needed. This leaves out the
dependency between PHYs and USB controller drivers for runtime
PM.

Let's fix the regression for twl4030-usb by adding minimal runtime
PM support. This allows idling the PHY on disconnect.

Note that we are changing to use standard runtime PM handling
for twl4030_phy_init() as that function just checks the state
and does not initialize the PHY. The PHY won't get initialized
until in twl4030_phy_power_on().

Fixes: 30a70b026b ("usb: musb: fix obex in g_nokia.ko causing kernel panic")
Fixes: 3063a12be2 ("usb: musb: fix PHY power on/off")
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-10-05 13:40:58 -07:00
..
Kconfig USB fixes for 3.16-rc5 2014-07-12 14:13:10 -07:00
Makefile phy: Add new Exynos5 USB 3.0 PHY driver 2014-05-13 18:07:08 +05:30
phy-bcm-kona-usb2.c usb: phy: bcm-kona-usb2: Use PTR_ERR_OR_ZERO 2014-03-02 00:26:26 +05:30
phy-core.c phy: core: Fix error path in phy_create() 2014-07-11 18:23:49 -07:00
phy-exynos-dp-video.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00
phy-exynos-mipi-video.c phy: exynos-mipi-video: fix check on array index 2014-05-12 19:02:02 +05:30
phy-exynos4x12-usb2.c phy: Add new Exynos USB 2.0 PHY driver 2014-03-08 12:39:44 +05:30
phy-exynos5-usbdrd.c phy: exynos5-usbdrd: Add facility for VBUS supply 2014-05-13 18:07:08 +05:30
phy-exynos4210-usb2.c phy: Add new Exynos USB 2.0 PHY driver 2014-03-08 12:39:44 +05:30
phy-exynos5250-sata.c PHY: Exynos: fix SATA phy license typo 2014-05-08 19:24:35 +05:30
phy-exynos5250-usb2.c phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver 2014-03-08 12:39:44 +05:30
phy-mvebu-sata.c phy: let phy_provider_register be the last step in registering PHY 2014-02-18 12:13:16 -08:00
phy-omap-control.c phy: omap-control: update dra7 and am437 usb2 bindings 2014-03-09 12:45:09 +05:30
phy-omap-usb2.c phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove 2014-07-11 18:23:50 -07:00
phy-samsung-usb2.c drivers: phy: phy-samsung-usb2.c: Add missing MODULE_DEVICE_TABLE 2014-07-11 18:23:49 -07:00
phy-samsung-usb2.h phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver 2014-03-08 12:39:44 +05:30
phy-sun4i-usb.c phy: usb: sunxi: Introduce Allwinner A31 USB PHY support 2014-05-14 19:41:13 +05:30
phy-ti-pipe3.c phy: ti-pipe3: Fix suspend/resume and module reload 2014-03-09 12:45:11 +05:30
phy-twl4030-usb.c usb: phy: twl4030-usb: Fix regressions to runtime PM on omaps 2014-10-05 13:40:58 -07:00
phy-xgene.c PHY: add APM X-Gene SoC 15Gbps Multi-purpose PHY driver 2014-03-09 12:45:13 +05:30