Message ID | e11f18a51f9e1de056ebafc434504e03d758bbdf.1618464534.git.Arthur.Petrosyan@synopsys.com |
---|---|
State | Superseded |
Headers | show |
Series | [01/15] usb: dwc2: Update exit hibernation when port reset is asserted | expand |
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index eccd96fa164e..576c262dba55 100644 --- a/drivers/usb/dwc2/core.c +++ b/drivers/usb/dwc2/core.c @@ -299,6 +299,12 @@ void dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup, __func__); } else { dev_dbg(hsotg->dev, "restore done generated here\n"); + + /* + * To avoid restore done interrupt storm after restore is + * generated clear GINTSTS_RESTOREDONE bit. + */ + dwc2_writel(hsotg, GINTSTS_RESTOREDONE, GINTSTS); } }