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

Commit bcabdc24 authored by Bo Shen's avatar Bo Shen Committed by Felipe Balbi
Browse files

usb: atmel_usba_udc: fix it to deal with final dma channel



As, the interrupt for DMA is counted from 1, so need to checked
the USBA_NR_DMAS, in old way, it only check (USBA_NR_DMAS - 1),
so fix it.

Reported-by: default avatarMax Liao <liaops@embest-tech.com>
Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 20e7d465
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1661,7 +1661,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
	if (dma_status) {
		int i;

		for (i = 1; i < USBA_NR_DMAS; i++)
		for (i = 1; i <= USBA_NR_DMAS; i++)
			if (dma_status & (1 << i))
				usba_dma_irq(udc, &udc->usba_ep[i]);
	}