]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: usb: Use slow clock for wake enabled suspend
authorJustin Chen <justinpopo6@gmail.com>
Wed, 5 Oct 2022 21:30:17 +0000 (14:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:15:57 +0000 (17:15 +0100)
commit795537eb2af1b3b2afb967a91e9f2b8dca8850f0
tree92db05f03a9fc8889474e9877e5075aca301e364
parent88b01048f286bb522f524ad99943ba86797d6514
phy: usb: Use slow clock for wake enabled suspend

commit 700c44b508020a3ea29d297c677f8d4ab14b7e6a upstream.

The logic was incorrect when switching to slow clock. We want the slow
clock if wake_enabled is set.

Fixes: ae532b2b7aa5 ("phy: usb: Add "wake on" functionality for newer Synopsis XHCI controllers")
Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/1665005418-15807-6-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