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)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Nov 2022 04:50:25 +0000 (10:20 +0530)
commit700c44b508020a3ea29d297c677f8d4ab14b7e6a
tree14dc2e675037ea3637dec7bf6c2062511f3a9c08
parent833c173ebab420997b98a0d888fc5b55ee4a8a7e
phy: usb: Use slow clock for wake enabled suspend

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>
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c