From: Johan Hovold Date: Fri, 23 May 2025 08:48:33 +0000 (+0200) Subject: phy: phy-snps-eusb2: fix clock imbalance on phy_exit() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=641fa5b515a6900b1452cc92d30d1ab391e04414;p=thirdparty%2Fkernel%2Flinux.git phy: phy-snps-eusb2: fix clock imbalance on phy_exit() Make sure to disable all clocks enabled at phy_init() also on phy_exit(). Fixes: c4098f3e6134 ("phy: phy-snps-eusb2: add support for exynos2200") Cc: Ivaylo Ivanov Signed-off-by: Johan Hovold Reviewed-by: Neil Armstrong Acked-by: Ivaylo Ivanov Reviewed-by: Abel Vesa Link: https://lore.kernel.org/r/20250523084839.11015-2-johan+linaro@kernel.org Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c index b73a1d7e57b32..19af3f99692c7 100644 --- a/drivers/phy/phy-snps-eusb2.c +++ b/drivers/phy/phy-snps-eusb2.c @@ -504,7 +504,7 @@ static int snps_eusb2_hsphy_exit(struct phy *p) { struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); - clk_disable_unprepare(phy->ref_clk); + clk_bulk_disable_unprepare(phy->data->num_clks, phy->clks); regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs);