ehci-atmel: Power down during suspend is normal
authorRomain Izard <romain.izard.pro@gmail.com>
Thu, 28 Sep 2017 09:46:24 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Oct 2017 07:58:42 +0000 (09:58 +0200)
When an Atmel SoC is suspended with the backup mode, the USB bus will be
powered down. As this is expected, do not return an error to the driver
core when ehci_resume detects it.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-atmel.c

index 7440722..2a8b9bd 100644 (file)
@@ -205,7 +205,8 @@ static int __maybe_unused ehci_atmel_drv_resume(struct device *dev)
        struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd);
 
        atmel_start_clock(atmel_ehci);
-       return ehci_resume(hcd, false);
+       ehci_resume(hcd, false);
+       return 0;
 }
 
 #ifdef CONFIG_OF