aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2009-04-06 22:00:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 11:31:06 -0400
commita963ea83b316b0a3ebf1c7118a6c36b5cd334bb6 (patch)
treeb714ae44ada54cd56813cc773f5181e153df5efd /drivers/spi
parentaaaf939c573b783398b6af863576322256352f64 (diff)
Blackfin SPI Driver: tweak magic spi dma sequence to get it working on BF54x
Without this change, SPI DMA is not reliably under stress tests. Obiviously it's a hardware issue which is not addressed by any document. Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_bfin5xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index e706de1d10c8..317731a9cd6d 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -862,8 +862,9 @@ static void pump_transfers(unsigned long data)
862 set_dma_start_addr(drv_data->dma_channel, dma_start_addr); 862 set_dma_start_addr(drv_data->dma_channel, dma_start_addr);
863 set_dma_config(drv_data->dma_channel, dma_config); 863 set_dma_config(drv_data->dma_channel, dma_config);
864 local_irq_save(flags); 864 local_irq_save(flags);
865 enable_dma(drv_data->dma_channel); 865 SSYNC();
866 write_CTRL(drv_data, cr); 866 write_CTRL(drv_data, cr);
867 enable_dma(drv_data->dma_channel);
867 dma_enable_irq(drv_data->dma_channel); 868 dma_enable_irq(drv_data->dma_channel);
868 local_irq_restore(flags); 869 local_irq_restore(flags);
869 870