linux-stable/drivers/phy/amlogic
Heiner Kallweit d3dfa4954e 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:14:34 +02:00
..
Kconfig
Makefile
phy-meson-axg-mipi-dphy.c phy: dphy: Correct clk_pre parameter 2022-02-16 12:56:23 +01:00
phy-meson-axg-mipi-pcie-analog.c
phy-meson-axg-pcie.c
phy-meson-g12a-usb2.c
phy-meson-g12a-usb3-pcie.c phy: amlogic: fix error path in phy_g12a_usb3_pcie_probe() 2022-05-09 09:14:34 +02:00
phy-meson-gxl-usb2.c phy: amlogic: phy-meson-gxl-usb2: fix shared reset controller use 2022-04-13 20:59:11 +02:00
phy-meson8b-usb2.c phy: amlogic: meson8b-usb2: fix shared reset control use 2022-04-13 20:59:11 +02:00