WSL2-Linux-Kernel/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 phy: amlogic: phy-meson-axg-mipi-pcie-analog: add support for MIPI DSI analog 2020-11-20 15:23:33 +05:30
Makefile phy: amlogic: Add AXG MIPI D-PHY driver 2020-11-20 15:23:33 +05:30
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: 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: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