From: Minas Harutyunyan Date: Thu, 3 May 2018 13:25:37 +0000 (+0400) Subject: usb: dwc2: Enable BNA interrupt for IN endpoints X-Git-Tag: v4.19~894^2~81^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37981e00503f6bdeb99108ff90199002c3eec2f5;p=platform%2Fkernel%2Flinux-rpi.git usb: dwc2: Enable BNA interrupt for IN endpoints In DDMA mode required to enable BNA interrupt for both directions. Signed-off-by: Minas Harutyunyan Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index ec88f7e2..403e990 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -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);