提交 01c10880 编写于 作者: B Bo He 提交者: Felipe Balbi

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: NBo He <bo.he@intel.com>
Signed-off-by: NYu Wang <yu.y.wang@intel.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 1c7fc5cb
...@@ -3379,6 +3379,8 @@ int dwc3_gadget_suspend(struct dwc3 *dwc) ...@@ -3379,6 +3379,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册