]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: phy-snps-eusb2: rename phy_init() clock error label
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 23 May 2025 08:48:35 +0000 (10:48 +0200)
committerVinod Koul <vkoul@kernel.org>
Sun, 15 Jun 2025 16:32:41 +0000 (22:02 +0530)
Rename the clock error label which is now used to disable all clocks and
not just the ref clock on phy_init() errors.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20250523084839.11015-4-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-snps-eusb2.c

index a799c3d2bcfbdbe5fb3105dc11c567ac2f687035..c8f14f8fb9acb816ba399f0bc08ccf0cd178e88d 100644 (file)
@@ -474,7 +474,7 @@ static int snps_eusb2_hsphy_init(struct phy *p)
        ret = reset_control_assert(phy->phy_reset);
        if (ret) {
                dev_err(&p->dev, "failed to assert phy_reset, %d\n", ret);
-               goto disable_ref_clk;
+               goto disable_clks;
        }
 
        usleep_range(100, 150);
@@ -482,16 +482,16 @@ static int snps_eusb2_hsphy_init(struct phy *p)
        ret = reset_control_deassert(phy->phy_reset);
        if (ret) {
                dev_err(&p->dev, "failed to de-assert phy_reset, %d\n", ret);
-               goto disable_ref_clk;
+               goto disable_clks;
        }
 
        ret = phy->data->phy_init(p);
        if (ret)
-               goto disable_ref_clk;
+               goto disable_clks;
 
        return 0;
 
-disable_ref_clk:
+disable_clks:
        clk_bulk_disable_unprepare(phy->data->num_clks, phy->clks);
 exit_repeater:
        phy_exit(phy->repeater);