]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Allow suspend if host is already suspended
authorTony Lindgren <tony@atomide.com>
Tue, 9 Oct 2007 23:26:59 +0000 (16:26 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Oct 2007 21:31:34 +0000 (14:31 -0700)
Allow suspend if host is already suspended

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_host.c

index 091ae8f548ac7fe63a9813280c886728b1027560..4eeff91b9268634b77edcf4ce98011574e61097e 100644 (file)
@@ -2128,6 +2128,9 @@ static int musb_bus_suspend(struct usb_hcd *hcd)
 {
        struct musb     *musb = hcd_to_musb(hcd);
 
+       if (musb->xceiv.state == OTG_STATE_A_SUSPEND)
+               return 0;
+
        if (is_host_active(musb) && musb->is_active) {
                WARN("trying to suspend as %s is_active=%i\n",
                        otg_state_string(musb), musb->is_active);