Commit a3bf4d68 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Greg Kroah-Hartman

USB: host: ohci-at91: suspend: delay needed before to stop clocks

In order to completely remove marginal power consumption in PM suspend,
we need to let the controller settle down before being stopped.
In ohci_hcd_at91_drv_suspend() function, one additional delay is needed before
to stop the clocks.
Reported-by: default avatarBoris Krasnovskiy <Boris.Krasnovskiy@lairdconnect.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20190911064154.28633-3-nicolas.ferre@microchip.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c4567fa
...@@ -628,6 +628,7 @@ ohci_hcd_at91_drv_suspend(struct device *dev) ...@@ -628,6 +628,7 @@ ohci_hcd_at91_drv_suspend(struct device *dev)
/* flush the writes */ /* flush the writes */
(void) ohci_readl (ohci, &ohci->regs->control); (void) ohci_readl (ohci, &ohci->regs->control);
msleep(1);
at91_stop_clock(ohci_at91); at91_stop_clock(ohci_at91);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment