Skip to content

Commit

Permalink
usb: dwc3: gadget: synchronize_irq dwc irq in suspend
Browse files Browse the repository at this point in the history
We see dwc3 endpoint stopped by unwanted irq during
suspend resume test, which is caused dwc3 ep can't be started
with error "No Resource".

Here, add synchronize_irq before suspend to sync the
pending IRQ handlers complete.

Signed-off-by: Bo He <[email protected]>
Signed-off-by: Yu Wang <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
bhe4 authored and Felipe Balbi committed Jan 14, 2019
1 parent 1c7fc5c commit 01c1088
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -3379,6 +3379,8 @@ int dwc3_gadget_suspend(struct dwc3 *dwc)
dwc3_disconnect_gadget(dwc);
__dwc3_gadget_stop(dwc);

synchronize_irq(dwc->irq_gadget);

return 0;
}

Expand Down

0 comments on commit 01c1088

Please sign in to comment.