]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: usb: Fix clock imbalance for suspend/resume
authorJustin Chen <justinpopo6@gmail.com>
Wed, 5 Oct 2022 21:30:18 +0000 (14:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:15:57 +0000 (17:15 +0100)
commit9f15cd4174d0b6029c1ec073f367387661a2494d
treebc974f9b2bfbf1531f0288c6a7ba56d219ea6ae5
parent795537eb2af1b3b2afb967a91e9f2b8dca8850f0
phy: usb: Fix clock imbalance for suspend/resume

commit 8484199c09347bdd5d81ee8a2bc530850f900797 upstream.

We should be disabling clocks when wake from USB is not needed. Since
this wasn't done, we had a clock imbalance since clocks were always
being enabled on resume.

Fixes: ae532b2b7aa5 ("phy: usb: Add "wake on" functionality for newer Synopsis XHCI controllers")
Fixes: b0c0b66c0b43 ("phy: usb: Add support for wake and USB low power mode for 7211 S2/S5")
Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/1665005418-15807-7-git-send-email-justinpopo6@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
drivers/phy/broadcom/phy-brcm-usb-init.h
drivers/phy/broadcom/phy-brcm-usb.c