Commit 01c10880 authored by Bo He's avatar Bo He Committed by Felipe Balbi
Browse files

usb: dwc3: gadget: synchronize_irq dwc irq in suspend



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: default avatarBo He <bo.he@intel.com>
Signed-off-by: default avatarYu Wang <yu.y.wang@intel.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 1c7fc5cb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}