linux-stable/drivers/phy/amlogic
Heiner Kallweit 51428daf85 phy: amlogic: fix error path in phy_g12a_usb3_pcie_probe()
[ Upstream commit 2c8045d48d ]

If clk_prepare_enable() fails we call clk_disable_unprepare()
in the error path what results in a warning that the clock
is disabled and unprepared already.
And if we fail later in phy_g12a_usb3_pcie_probe() then we
bail out w/o calling clk_disable_unprepare().
This patch fixes both errors.

Fixes: 36077e16c0 ("phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/8e416f95-1084-ee28-860e-7884f7fa2e32@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:16:20 +02:00
..
Kconfig phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
Makefile phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
phy-meson-axg-mipi-dphy.c phy: dphy: Correct clk_pre parameter 2022-02-02 10:33:04 +05:30
phy-meson-axg-mipi-pcie-analog.c phy: amlogic: meson-axg-mipi-pcie-analog: replace DSI_LANE definitions with BIT() macro 2020-11-30 16:30:24 +05:30
phy-meson-axg-pcie.c phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
phy-meson-g12a-usb2.c phy: amlogic: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
phy-meson-g12a-usb3-pcie.c phy: amlogic: fix error path in phy_g12a_usb3_pcie_probe() 2022-05-09 09:16:20 +02:00
phy-meson-gxl-usb2.c phy: amlogic: phy-meson-gxl-usb2: fix shared reset controller use 2022-04-13 19:27:23 +02:00
phy-meson8-hdmi-tx.c phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
phy-meson8b-usb2.c phy: amlogic: meson8b-usb2: fix shared reset control use 2022-04-13 19:27:23 +02:00