From 0b15cbd56db8468439e4844b602fa0a3f286e2a4 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Thu, 17 Apr 2008 17:38:35 +0300 Subject: [PATCH] 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 --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.41.3