diff mbox series

[2/2] usb: host: xhci-plat: suspend/resume clks for brcm

Message ID 1660170455-15781-3-git-send-email-justinpopo6@gmail.com
State New
Headers show
Series usb: host: xhci-plat: Introduce XHCI_SUSPEND_RESUME_CLKS quirk | expand

Commit Message

Justin Chen Aug. 10, 2022, 10:27 p.m. UTC
From: Justin Chen <justinpopo6@gmail.com>

The xhci_plat_brcm xhci block can enter suspend with clock disabled to save
power and re-enable them on resume. Make use of the XHCI_SUSPEND_RESUME_CLKS
quirk to do so.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
---
 drivers/usb/host/xhci-plat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index a68b2b0..62756d9 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -123,7 +123,7 @@  static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = {
 };
 
 static const struct xhci_plat_priv xhci_plat_brcm = {
-	.quirks = XHCI_RESET_ON_RESUME,
+	.quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS,
 };
 
 static const struct of_device_id usb_xhci_of_match[] = {