]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/usb/musb/musb_host.c
usb: musb: fix remote wakeup racing with suspend
[mirror_ubuntu-bionic-kernel.git] / drivers / usb / musb / musb_host.c
index a1ccfcbbef5c3b41a9badc140108c518c489af72..b8d13e85ce91ccec1ccdfa15a78a7ef17c4a7e37 100644 (file)
@@ -2535,8 +2535,11 @@ static int musb_bus_suspend(struct usb_hcd *hcd)
 {
        struct musb     *musb = hcd_to_musb(hcd);
        u8              devctl;
+       int             ret;
 
-       musb_port_suspend(musb, true);
+       ret = musb_port_suspend(musb, true);
+       if (ret)
+               return ret;
 
        if (!is_host_active(musb))
                return 0;