]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: synchronize_irq dwc irq in suspend
authorBo He <bo.he@intel.com>
Mon, 14 Jan 2019 07:48:32 +0000 (09:48 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 14 Jan 2019 08:29:42 +0000 (10:29 +0200)
commit2d98e7eb73086e0431424584c01e00aa00e54260
tree04b4217a0fc159c12c6e9dcbf084c665ca0a245a
parent5ada4c1885c3ebec7f8758c3968a4b57e1d3dc0e
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: Bo He <bo.he@intel.com>
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c