Skip to content

Commit 265fad7

Browse files
andredgregkh
authored andcommitted
phy: exynos5-usbdrd: fix clock prepare imbalance
commit 5e428e4 upstream. Commit f4fb9c4 ("phy: exynos5-usbdrd: allow DWC3 runtime suspend with UDC bound (E850+)") incorrectly added clk_bulk_disable() as the inverse of clk_bulk_prepare_enable() while it should have of course used clk_bulk_disable_unprepare(). This means incorrect reference counts to the CMU driver remain. Update the code accordingly. Fixes: f4fb9c4 ("phy: exynos5-usbdrd: allow DWC3 runtime suspend with UDC bound (E850+)") CC: stable@vger.kernel.org Signed-off-by: André Draszik <andre.draszik@linaro.org> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Link: https://patch.msgid.link/20251006-gs101-usb-phy-clk-imbalance-v1-1-205b206126cf@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 344057b commit 265fad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/samsung/phy-exynos5-usbdrd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ static int exynos5_usbdrd_orien_sw_set(struct typec_switch_dev *sw,
18231823
phy_drd->orientation = orientation;
18241824
}
18251825

1826-
clk_bulk_disable(phy_drd->drv_data->n_clks, phy_drd->clks);
1826+
clk_bulk_disable_unprepare(phy_drd->drv_data->n_clks, phy_drd->clks);
18271827

18281828
return 0;
18291829
}

0 commit comments

Comments
 (0)