diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 07:14:36 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-04-13 04:50:58 -0400 |
commit | ec63bf6c06b01ceeb6048a2b9fa9e73060259307 (patch) | |
tree | 0372673198318c8133093aa37ab971da88d01b54 | |
parent | 8726606424738ca0341e1bb93ebac956d80f6d29 (diff) |
USB: musb: add missing unlock in cppi_interrupt()
We should unlock before returning here.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/musb/cppi_dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index de55a3c3259a..6385eeb44a07 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -1167,8 +1167,11 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) | |||
1167 | tx = musb_readl(tibase, DAVINCI_TXCPPI_MASKED_REG); | 1167 | tx = musb_readl(tibase, DAVINCI_TXCPPI_MASKED_REG); |
1168 | rx = musb_readl(tibase, DAVINCI_RXCPPI_MASKED_REG); | 1168 | rx = musb_readl(tibase, DAVINCI_RXCPPI_MASKED_REG); |
1169 | 1169 | ||
1170 | if (!tx && !rx) | 1170 | if (!tx && !rx) { |
1171 | if (cppi->irq) | ||
1172 | spin_unlock_irqrestore(&musb->lock, flags); | ||
1171 | return IRQ_NONE; | 1173 | return IRQ_NONE; |
1174 | } | ||
1172 | 1175 | ||
1173 | DBG(4, "CPPI IRQ Tx%x Rx%x\n", tx, rx); | 1176 | DBG(4, "CPPI IRQ Tx%x Rx%x\n", tx, rx); |
1174 | 1177 | ||