android_kernel_xiaomi_sm8450/drivers/phy
Miaoqian Lin 9e00a6e1fd phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe
[ Upstream commit d644e0d79829b1b9a14beedbdb0dc1256fc3677d ]

The pm_runtime_enable will increase power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable(). And use pm_runtime_dont_use_autosuspend() to
undo pm_runtime_use_autosuspend()
In the PM Runtime docs:
    Drivers in ->remove() callback should undo the runtime PM changes done
    in ->probe(). Usually this means calling pm_runtime_disable(),
    pm_runtime_dont_use_autosuspend() etc.

We should do this in error handling.

Fixes: f7f50b2a7b ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220301024615.31899-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:05:01 +02:00
..
allwinner Merge branch 'fixes' into next 2020-07-17 13:45:53 +05:30
amlogic phy: amlogic: meson8b-usb2: Use dev_err_probe() 2022-04-13 21:01:01 +02:00
broadcom phy: usb: Leave some clocks running during suspend 2022-02-23 12:01:05 +01:00
cadence phy: cadence: Sierra: Fix error return code in cdns_sierra_phy_probe() 2021-06-16 12:01:45 +02:00
freescale phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops 2020-08-31 14:36:36 +05:30
hisilicon phy: hisilicon; Constify hi3660_phy_ops 2020-08-31 14:36:36 +05:30
intel phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP 2021-07-20 16:05:46 +02:00
lantiq phy: lantiq: rcu-usb2: wait after clock enable 2021-03-04 11:38:24 +01:00
marvell phy: marvell: ARMADA375_USBCLUSTER_PHY should not default to y, unconditionally 2021-05-14 09:50:13 +02:00
mediatek phy: phy-mtk-tphy: Fix some resource leaks in mtk_phy_init() 2021-06-23 14:42:48 +02:00
motorola phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe 2022-05-09 09:05:01 +02:00
mscc
qualcomm phy: qcom-snps: Correct the FSEL_MASK 2021-11-18 14:04:20 +01:00
ralink phy: ralink-usb: Constify ralink_usb_phy_ops 2020-08-31 14:36:37 +05:30
renesas phy: renesas: rcar-gen3-usb2: disable runtime pm in case of failure 2020-12-30 11:53:36 +01:00
rockchip phy: rockchip-emmc: emmc_phy_init() always return 0 2021-03-04 11:38:10 +01:00
samsung phy: samsung: exynos5250-sata: fix missing device put in probe error paths 2022-05-09 09:05:01 +02:00
socionext phy: uniphier-usb3ss: fix unintended writing zeros to PHY register 2022-01-27 10:54:08 +01:00
st phy: stm32: use NULL instead of zero 2020-07-13 12:15:46 +05:30
tegra phy: tegra: xusb: Fix usb_phy device driver field 2020-12-30 11:53:26 +01:00
ti phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks 2022-05-09 09:05:01 +02:00
xilinx phy: xilinx: zynqmp: Fix bus width setting for SGMII 2022-02-16 12:54:23 +01:00
Kconfig phy: USB_LGM_PHY should depend on X86 2021-03-04 11:38:13 +01:00
Makefile phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-core-mipi-dphy.c phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure}) 2022-04-08 14:40:24 +02:00
phy-core.c phy: core: Document function args 2020-07-08 16:40:21 +05:30
phy-lgm-usb.c phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c phy: xgene: remove unsigned integer comparison with less than zero 2020-07-13 12:14:51 +05:30