]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
usb: musb: ignore disconnect on suspend
authorFelipe Balbi <felipe.balbi@nokia.com>
Wed, 11 Jun 2008 11:07:12 +0000 (14:07 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Jun 2008 11:13:06 +0000 (14:13 +0300)
This still needed, otherwise tusb2.0 won't connect after
a power cycle.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c

index 8f7671cd5fc4ba3bbecb477307c6ea64114dfc2b..75c3013544b6c2b9bacb5705120634aca42ce613 100644 (file)
@@ -661,7 +661,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
                        switch (musb->xceiv.state) {
 #ifdef CONFIG_USB_OTG
                        case OTG_STATE_A_SUSPEND:
-                               musb->ignore_disconnect = 0;
+                               /* We need to ignore disconnect on suspend
+                                * otherwise tusb 2.0 won't reconnect after a
+                                * power cycle, which breaks otg compliance.
+                                */
+                               musb->ignore_disconnect = 1;
                                musb_g_reset(musb);
                                /* FALLTHROUGH */
                        case OTG_STATE_A_WAIT_BCON:     /* OPT TD.4.7-900ms */