Skip to content

Commit 641fa5b

Browse files
jhovoldvinodkoul
authored andcommitted
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: c4098f3 ("phy: phy-snps-eusb2: add support for exynos2200") Cc: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Acked-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20250523084839.11015-2-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 9c85048 commit 641fa5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/phy-snps-eusb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ static int snps_eusb2_hsphy_exit(struct phy *p)
504504
{
505505
struct snps_eusb2_hsphy *phy = phy_get_drvdata(p);
506506

507-
clk_disable_unprepare(phy->ref_clk);
507+
clk_bulk_disable_unprepare(phy->data->num_clks, phy->clks);
508508

509509
regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs);
510510

0 commit comments

Comments
 (0)