From: Felipe Balbi Date: Thu, 17 Apr 2008 14:38:35 +0000 (+0300) Subject: USB: MUSB: Don't ignore disconnect on suspend X-Git-Tag: v2.6.26-omap1~123^2~121 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0b15cbd56db8468439e4844b602fa0a3f286e2a4;p=linux-2.6-omap-h63xx.git USB: MUSB: Don't ignore disconnect on suspend As soon as a usb device is disconnect we should fall into a_wait_bcon state, ignoring disconnect irq will prevent this behaviour. Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index c5816a24b8b..019898ab1ad 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -659,7 +659,7 @@ 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 = 1; + musb->ignore_disconnect = 0; musb_g_reset(musb); /* FALLTHROUGH */ case OTG_STATE_A_WAIT_BCON: /* OPT TD.4.7-900ms */