Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec01f0b2 authored by Vahram Aharonyan's avatar Vahram Aharonyan Committed by Felipe Balbi
Browse files

usb: dwc2: gadget: Enable the BNA interrupt



Enable the BNA (Buffer Not Available) interrupt in descriptor DMA mode.

Signed-off-by: default avatarVahram Aharonyan <vahrama@synopsys.com>
Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 540ccba0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3227,6 +3227,10 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
		DOEPMSK_SETUPMSK,
		hsotg->regs + DOEPMSK);

	/* Enable BNA interrupt for DDMA */
	if (using_desc_dma(hsotg))
		__orr32(hsotg->regs + DOEPMSK, DOEPMSK_BNAMSK);

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

	dev_dbg(hsotg->dev, "EP0: DIEPCTL0=0x%08x, DOEPCTL0=0x%08x\n",
+1 −0
Original line number Diff line number Diff line
@@ -474,6 +474,7 @@
#define DIEPMSK_XFERCOMPLMSK		(1 << 0)

#define DOEPMSK				HSOTG_REG(0x814)
#define DOEPMSK_BNAMSK			(1 << 9)
#define DOEPMSK_BACK2BACKSETUP		(1 << 6)
#define DOEPMSK_STSPHSERCVDMSK		(1 << 5)
#define DOEPMSK_OUTTKNEPDISMSK		(1 << 4)