diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-05-18 06:01:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-18 02:49:28 -0400 |
commit | 60d0071b609ecb0aebe12aaedf34fe552da12c5b (patch) | |
tree | 59555a6112567fc794f290c72ddfcb0791e3fdaf /drivers/spi/spi_bfin5xx.c | |
parent | ac01e97d644da8e947ffa1bde5083290fe2e36e7 (diff) |
spi/bfin_spi: work around anomaly 05000119
Anomaly 05000119 states that the DMA_RUN bit with peripherals isn't
reliable. However, the way the driver is currently written (DMA IRQ
callback), we don't need the polling in the first place, so drop it.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/spi/spi_bfin5xx.c')
-rw-r--r-- | drivers/spi/spi_bfin5xx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index 4f20b923a95c..61c2ebf9fe18 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c | |||
@@ -540,10 +540,6 @@ static irqreturn_t bfin_spi_dma_irq_handler(int irq, void *dev_id) | |||
540 | 540 | ||
541 | clear_dma_irqstat(drv_data->dma_channel); | 541 | clear_dma_irqstat(drv_data->dma_channel); |
542 | 542 | ||
543 | /* Wait for DMA to complete */ | ||
544 | while (get_dma_curr_irqstat(drv_data->dma_channel) & DMA_RUN) | ||
545 | cpu_relax(); | ||
546 | |||
547 | /* | 543 | /* |
548 | * wait for the last transaction shifted out. HRM states: | 544 | * wait for the last transaction shifted out. HRM states: |
549 | * at this point there may still be data in the SPI DMA FIFO waiting | 545 | * at this point there may still be data in the SPI DMA FIFO waiting |