linux/drivers/phy
Tony Lindgren 916586efc7 phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload
[ Upstream commit 58a66dba1b ]

If we reload phy-twl4030-usb, we get a warning about unbalanced
pm_runtime_enable. Let's fix the issue and also fix idling of the
device on unload before we attempt to shut it down.

If we don't properly idle the PHY before shutting it down on removal,
the twl4030 ends up consuming about 62mW of extra power compared to
running idle with the module loaded.

Cc: stable@vger.kernel.org
Cc: Bin Liu <b-liu@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: NeilBrown <neil@brown.name>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-03-04 10:18:39 -05:00
..
Kconfig phy: phy-stih41x-usb: Add usb phy support for STiH41x SoCs. 2014-09-24 15:18:33 +05:30
Makefile phy: phy-stih41x-usb: Add usb phy support for STiH41x SoCs. 2014-09-24 15:18:33 +05:30
phy-bcm-kona-usb2.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-berlin-sata.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-core.c phy: core: fix wrong err handle for phy_power_on 2016-03-04 10:18:39 -05:00
phy-exynos-dp-video.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-exynos-mipi-video.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-exynos4x12-usb2.c drivers: phy: exynos-usb2: add support for Exynos 3250 2014-07-22 12:46:10 +05:30
phy-exynos5-usbdrd.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +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: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-exynos5250-usb2.c phy: phy-samsung-usb2: Change phy power on/power off sequence 2014-07-22 12:46:10 +05:30
phy-hix5hd2-sata.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-miphy365x.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-mvebu-sata.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-omap-control.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-omap-usb2.c phy: omap-usb2: Enable runtime PM of omap-usb2 phy properly 2014-11-05 14:34:06 -08:00
phy-qcom-apq8064-sata.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-qcom-ipq806x-sata.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-rcar-gen2.c phy: Renesas R-Car Gen2 PHY driver 2014-09-24 15:18:31 +05:30
phy-s5pv210-usb2.c phy: Add support for S5PV210 to the Exynos USB 2.0 PHY driver 2014-07-19 04:25:09 +09:00
phy-samsung-usb2.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-samsung-usb2.h ARM: SoC platform changes for 3.17 2014-08-08 11:14:29 -07:00
phy-spear1310-miphy.c phy: phy-spear1310-miphy: Use module_platform_driver to register driver. 2014-09-24 15:18:32 +05:30
phy-spear1340-miphy.c phy: phy-spear1340-miphy: Use module_platform_driver to register driver. 2014-09-24 15:18:32 +05:30
phy-stih41x-usb.c phy: phy-stih41x-usb: Add usb phy support for STiH41x SoCs. 2014-09-24 15:18:33 +05:30
phy-stih407-usb.c phy: phy-stih407-usb: Add usb picoPHY driver found on stih407 SoC family 2014-09-24 15:18:33 +05:30
phy-sun4i-usb.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-ti-pipe3.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30
phy-twl4030-usb.c phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload 2016-03-04 10:18:39 -05:00
phy-xgene.c phy: remove .owner field for drivers using module_platform_driver 2014-09-24 15:18:34 +05:30