linux-stable/drivers/phy
Dongliang Mu 2afdd2d9cf phy: qualcomm: call clk_disable_unprepare in the error handling
[ Upstream commit c3966ced8e ]

Smatch reports the following error:

drivers/phy/qualcomm/phy-qcom-usb-hsic.c:82 qcom_usb_hsic_phy_power_on()
warn: 'uphy->cal_clk' from clk_prepare_enable() not released on lines:
58.
drivers/phy/qualcomm/phy-qcom-usb-hsic.c:82 qcom_usb_hsic_phy_power_on()
warn: 'uphy->cal_sleep_clk' from clk_prepare_enable() not released on
lines: 58.
drivers/phy/qualcomm/phy-qcom-usb-hsic.c:82 qcom_usb_hsic_phy_power_on()
warn: 'uphy->phy_clk' from clk_prepare_enable() not released on lines:
58.

Fix this by calling proper clk_disable_unprepare calls.

Fixes: 0b56e9a7e8 ("phy: Group vendor specific phy drivers")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20220914051334.69282-1-dzm91@hust.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-24 09:57:56 +02:00
..
allwinner phy: allwinner: phy-sun6i-mipi-dphy: Support D-PHY Rx mode for MIPI CSI-2 2022-04-20 14:40:12 +05:30
amlogic phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent() 2022-10-24 09:57:53 +02:00
broadcom phy: phy-brcm-usb: fixup BCM4908 support 2022-02-25 14:32:37 +05:30
cadence phy: cadence: Sierra: Add TI J721E specific PCIe multilink lane configuration 2022-04-13 15:26:54 +05:30
freescale phy: freescale: imx8m-pcie: Handle IMX8_PCIE_REFCLK_PAD_UNUSED 2022-04-20 14:45:55 +05:30
hisilicon phy: HiSilicon: Fix copy and paste bug in error handling 2021-11-23 10:42:13 +05:30
ingenic
intel phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe() 2021-12-02 09:46:33 +05:30
lantiq
marvell phy: marvell: phy-mvebu-a3700-comphy: Remove broken reset support 2022-09-28 11:32:22 +02:00
mediatek phy: phy-mtk-tphy: fix the phy type setting issue 2022-10-24 09:57:53 +02:00
microchip phy: lan966x: Remove set_speed function 2021-12-14 14:24:48 +05:30
motorola phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe 2022-04-14 10:38:39 +05:30
mscc
qualcomm phy: qualcomm: call clk_disable_unprepare in the error handling 2022-10-24 09:57:56 +02:00
ralink phy-for-5.14 version 2 2021-06-23 10:33:34 +02:00
renesas phy: renesas: phy-rcar-gen3-usb2: Add USB2.0 PHY support for RZ/G2L 2021-08-06 18:12:30 +05:30
rockchip phy: rockchip-inno-usb2: Return zero after otg sync 2022-10-24 09:57:51 +02:00
samsung phy: samsung: phy-exynos-pcie: sanitize init/power_on callbacks 2022-08-25 11:45:46 +02:00
socionext phy: uniphier-usb3ss: fix unintended writing zeros to PHY register 2021-12-24 10:06:38 +05:30
st phy: stm32: fix error return in stm32_usbphyc_phy_init 2022-08-17 15:15:33 +02:00
tegra phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function 2021-12-14 13:07:21 +05:30
ti phy: ti: tusb1210: Don't check for write errors when powering on 2022-08-17 15:15:27 +02:00
xilinx phy: xilinx: zynqmp: Fix bus width setting for SGMII 2022-01-27 10:55:26 +05:30
Kconfig phy: phy-can-transceiver: Add support for setting mux 2022-04-11 20:14:10 +05:30
Makefile phy: phy-can-transceiver: Add support for generic CAN transceiver driver 2021-06-14 11:20:17 +05:30
phy-can-transceiver.c phy: phy-can-transceiver: Add support for setting mux 2022-04-11 20:14:10 +05:30
phy-core-mipi-dphy.c phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure}) 2022-02-25 14:14:06 +05:30
phy-core.c phy: core: Warn when phy_power_on is called before phy_init 2022-04-20 14:45:15 +05:30
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c