projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24bd1d
)
Blackfin SPI Driver: do not check for SPI errors if DMA itself did not flag any
author
Mike Frysinger
<
[email protected]
>
Tue, 7 Apr 2009 02:00:38 +0000
(19:00 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 7 Apr 2009 15:31:05 +0000
(08:31 -0700)
We only need to check SPI error when DMA failes, cause that is the DMA IRQ
handling routine.
Signed-off-by: Mike Frysinger <
[email protected]
>
Signed-off-by: Bryan Wu <
[email protected]
>
Cc: David Brownell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/spi/spi_bfin5xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi_bfin5xx.c
b/drivers/spi/spi_bfin5xx.c
index 5acec9ff01754ad494b76d01aa973c27a8f55ef5..5ebb67b011d05a944b01453b4b77a15dc650baea 100644
(file)
--- a/
drivers/spi/spi_bfin5xx.c
+++ b/
drivers/spi/spi_bfin5xx.c
@@
-587,7
+587,7
@@
static irqreturn_t dma_irq_handler(int irq, void *dev_id)
while (!(read_STAT(drv_data) & SPIF))
cpu_relax();
- if (
spistat & RBSY
) {
+ if (
(dmastat & DMA_ERR) && (spistat & RBSY)
) {
msg->state = ERROR_STATE;
dev_err(&drv_data->pdev->dev, "dma receive: fifo/buffer overflow\n");
} else {