Skip to contentSkip to conversation

usb: dwc3: gadget: synchronize_irq dwc irq in suspend

DISCUSSION Felipe Balbi 1 participant 1 message Jan 28, 2019 USB

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 10 lines · Marek Szyprowski
Quoted 9 lines · Felipe Balbi

From: Bo He <[email protected]>

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.

Quoted 6 lines
Quoted 3 lines

This patch causes following kernel BUG on Samsung Exynos based platforms during system suspend/resume cycle:

are you calling ->suspend() from ->suspend_noirq() time? Are we not allowed to call synchronize_irq() during ->suspend()?