Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: phy-snps-eusb2: rename phy_init() clock error label

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>

authored by

Johan Hovold and committed by
Vinod Koul
4f333990 3232a6b0

+4 -4
+4 -4
drivers/phy/phy-snps-eusb2.c
··· 474 474 ret = reset_control_assert(phy->phy_reset); 475 475 if (ret) { 476 476 dev_err(&p->dev, "failed to assert phy_reset, %d\n", ret); 477 - goto disable_ref_clk; 477 + goto disable_clks; 478 478 } 479 479 480 480 usleep_range(100, 150); ··· 482 482 ret = reset_control_deassert(phy->phy_reset); 483 483 if (ret) { 484 484 dev_err(&p->dev, "failed to de-assert phy_reset, %d\n", ret); 485 - goto disable_ref_clk; 485 + goto disable_clks; 486 486 } 487 487 488 488 ret = phy->data->phy_init(p); 489 489 if (ret) 490 - goto disable_ref_clk; 490 + goto disable_clks; 491 491 492 492 return 0; 493 493 494 - disable_ref_clk: 494 + disable_clks: 495 495 clk_bulk_disable_unprepare(phy->data->num_clks, phy->clks); 496 496 exit_repeater: 497 497 phy_exit(phy->repeater);