Commit d18d124a authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

usb: musb: ignore disconnect on suspend

This still needed, otherwise tusb2.0 won't connect after
a power cycle.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 2b453f23
...@@ -661,7 +661,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, ...@@ -661,7 +661,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
switch (musb->xceiv.state) { switch (musb->xceiv.state) {
#ifdef CONFIG_USB_OTG #ifdef CONFIG_USB_OTG
case OTG_STATE_A_SUSPEND: 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); musb_g_reset(musb);
/* FALLTHROUGH */ /* FALLTHROUGH */
case OTG_STATE_A_WAIT_BCON: /* OPT TD.4.7-900ms */ case OTG_STATE_A_WAIT_BCON: /* OPT TD.4.7-900ms */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment