diff options
author | Minas Harutyunyan <minas.harutyunyan@synopsys.com> | 2018-12-12 16:44:32 +0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-01-17 15:56:53 +0200 |
commit | 87b6d2c56825c3119a0e64cc208ae6d795810a2e (patch) | |
tree | 367b8e81d3cbcd52daee59a3ee79b717e79377e6 /drivers/usb/dwc2/gadget.c | |
parent | df28169e1538e4a8bcd8b779b043e5aa6524545c (diff) | |
download | linux-87b6d2c56825c3119a0e64cc208ae6d795810a2e.tar.gz linux-87b6d2c56825c3119a0e64cc208ae6d795810a2e.tar.bz2 linux-87b6d2c56825c3119a0e64cc208ae6d795810a2e.zip |
usb: dwc2: gadget: Fix Remote Wakeup interrupt bit clearing
To clear GINTSTS2_WKUP_ALERT_INT bit in GINTSTS2 register
require to write 1. This bit is implemented as "Write to clear".
Fixes: 187c5298a122 ("usb: dwc2: gadget: Add handler for WkupAlert interrupt")
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/gadget.c')
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 68ad75a7460d..55ef3cc2701b 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -261,7 +261,7 @@ static void dwc2_gadget_wkup_alert_handler(struct dwc2_hsotg *hsotg) if (gintsts2 & GINTSTS2_WKUP_ALERT_INT) { dev_dbg(hsotg->dev, "%s: Wkup_Alert_Int\n", __func__); - dwc2_clear_bit(hsotg, GINTSTS2, GINTSTS2_WKUP_ALERT_INT); + dwc2_set_bit(hsotg, GINTSTS2, GINTSTS2_WKUP_ALERT_INT); dwc2_set_bit(hsotg, DCTL, DCTL_RMTWKUPSIG); } } |