Commit 37981e00 authored by Minas Harutyunyan's avatar Minas Harutyunyan Committed by Felipe Balbi
Browse files

usb: dwc2: Enable BNA interrupt for IN endpoints



In DDMA mode required to enable BNA interrupt for
both directions.

Signed-off-by: default avatarMinas Harutyunyan <hminas@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 729cac69
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);