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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:58:46 +0000 (17:58 +0100)
commit03a5d4d55335383e733c472088b197fec1a60b01
treeb30adda4877d1e86a661b8e75faa6959b8d271b0
parentf29024c0e9a7c808d8673b9155becf54bf13a138
usb: dwc3: gadget: synchronize_irq dwc irq in suspend

[ Upstream commit 01c10880d24291a96a4ab0da773e3c5ce4d12da8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc3/gadget.c