From: Nicolas Ferre Date: Wed, 11 Sep 2019 06:41:53 +0000 (+0200) Subject: USB: host: ohci-at91: suspend: delay needed before to stop clocks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a3bf4d6816556baa9a503c9232eb7e3f018ff8dc;p=linux.git 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: Boris Krasnovskiy Signed-off-by: Nicolas Ferre Acked-by: Alan Stern Link: https://lore.kernel.org/r/20190911064154.28633-3-nicolas.ferre@microchip.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index cb63bcd5049a4..85d67fe42d59b 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -628,6 +628,7 @@ ohci_hcd_at91_drv_suspend(struct device *dev) /* flush the writes */ (void) ohci_readl (ohci, &ohci->regs->control); + msleep(1); at91_stop_clock(ohci_at91); }