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 <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Acked-by: Ivaylo Ivanov <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 9c85048 commit 641fa5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)