]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
usb: dwc2: Enable BNA interrupt for IN endpoints
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Thu, 3 May 2018 13:25:37 +0000 (17:25 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:16:43 +0000 (10:16 +0300)
In DDMA mode required to enable BNA interrupt for
both directions.

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c

index ec88f7e23f31b592972b64970901135ea4653e41..403e99026c5256e5d138a582d000d45c88eedc11 100644 (file)
@@ -3297,8 +3297,10 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
                hsotg->regs + DOEPMSK);
 
        /* Enable BNA interrupt for DDMA */
-       if (using_desc_dma(hsotg))
+       if (using_desc_dma(hsotg)) {
                dwc2_set_bit(hsotg->regs + DOEPMSK, DOEPMSK_BNAMSK);
+               dwc2_set_bit(hsotg->regs + DIEPMSK, DIEPMSK_BNAININTRMSK);
+       }
 
        dwc2_writel(0, hsotg->regs + DAINTMSK);