]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: exynos5-usbdrd: fix clock prepare imbalance
authorAndré Draszik <andre.draszik@linaro.org>
Mon, 6 Oct 2025 08:07:12 +0000 (09:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:07 +0000 (12:57 +0100)
commit265fad7d9c42cb7b29c2de06a645dce33e7b9f42
tree099ced1bbd435fcf68fa18961a0a2d24d9809c64
parent344057b2605d53b325ce029d0c07ad5892ce6974
phy: exynos5-usbdrd: fix clock prepare imbalance

commit 5e428e45bf17a8f3784099ca5ded16e3b5d59766 upstream.

Commit f4fb9c4d7f94 ("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: f4fb9c4d7f94 ("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>
drivers/phy/samsung/phy-exynos5-usbdrd.c