projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e7d46
)
usb: atmel_usba_udc: fix it to deal with final dma channel
author
Bo Shen
<voice.shen@atmel.com>
Thu, 7 Aug 2014 03:43:07 +0000
(11:43 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 19 Aug 2014 14:24:41 +0000
(09:24 -0500)
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: Max Liao <liaops@embest-tech.com>
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/atmel_usba_udc.c
b/drivers/usb/gadget/udc/atmel_usba_udc.c
index 906e65f0e4fa7b8c225e4c75ad80666b6dd78085..c9fe67e29d35fcbe420b04a79f6797d531b852e9 100644
(file)
--- a/
drivers/usb/gadget/udc/atmel_usba_udc.c
+++ b/
drivers/usb/gadget/udc/atmel_usba_udc.c
@@
-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]);
}