提交 a3bf4d68 编写于 作者: N Nicolas Ferre 提交者: 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: NBoris Krasnovskiy <Boris.Krasnovskiy@lairdconnect.com>
Signed-off-by: NNicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20190911064154.28633-3-nicolas.ferre@microchip.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册