Skip to content

Commit 37981e0

Browse files
Minas HarutyunyanFelipe Balbi
authored andcommitted
usb: dwc2: Enable BNA interrupt for IN endpoints
In DDMA mode required to enable BNA interrupt for both directions. Signed-off-by: Minas Harutyunyan <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 729cac6 commit 37981e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/dwc2/gadget.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,8 +3297,10 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
32973297
hsotg->regs + DOEPMSK);
32983298

32993299
/* Enable BNA interrupt for DDMA */
3300-
if (using_desc_dma(hsotg))
3300+
if (using_desc_dma(hsotg)) {
33013301
dwc2_set_bit(hsotg->regs + DOEPMSK, DOEPMSK_BNAMSK);
3302+
dwc2_set_bit(hsotg->regs + DIEPMSK, DIEPMSK_BNAININTRMSK);
3303+
}
33023304

33033305
dwc2_writel(0, hsotg->regs + DAINTMSK);
33043306

0 commit comments

Comments
 (0)