Commit 03a5d4d5 authored by Bo He's avatar Bo He Committed by Greg Kroah-Hartman

usb: dwc3: gadget: synchronize_irq dwc irq in suspend

[ Upstream commit 01c10880 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f29024c0
...@@ -3274,6 +3274,8 @@ int dwc3_gadget_suspend(struct dwc3 *dwc) ...@@ -3274,6 +3274,8 @@ int dwc3_gadget_suspend(struct dwc3 *dwc)
dwc3_disconnect_gadget(dwc); dwc3_disconnect_gadget(dwc);
__dwc3_gadget_stop(dwc); __dwc3_gadget_stop(dwc);
synchronize_irq(dwc->irq_gadget);
return 0; return 0;
} }
......
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