]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc2: gadget: Fix WkupAlert interrupt handler.
authorArtur Petrosyan <arthur.petrosyan@synopsys.com>
Fri, 2 Nov 2018 15:29:48 +0000 (11:29 -0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:32 +0000 (09:06 +0200)
According to the databook DCTL_RMTWKUPSIG bit
is defined in DCTL register not in DCFG.

Updated setting DCTL_RMTWKUPSIG bit to DCTL
register.

Fixes: 187c5298a122 ("usb: dwc2: gadget: Add handler for WkupAlert interrupt")
Signed-off-by: Artur Petrosyan <arturp@synopsys.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c

index 2d6d2c8244de6f06ef002ab9a957508feeac07ed..6bd4054e894d3c93c0a8e1169455c0217690bf2e 100644 (file)
@@ -262,7 +262,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, DCFG, DCTL_RMTWKUPSIG);
+               dwc2_set_bit(hsotg, DCTL, DCTL_RMTWKUPSIG);
        }
 }