]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Blackfin SPI Driver: get dma working for SPI flashes
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 7 Apr 2009 02:00:41 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:31:05 +0000 (08:31 -0700)
commit11d6f5995137ba4dc49e9337185ac0a8753f8f69
tree36f45d8415d190db572be32dd12ec24424c98ad5
parent4160bde2d83d1c66e9c774c48015a13733fe9aba
Blackfin SPI Driver: get dma working for SPI flashes

When using a BF533-STAMP here with a W25X10 SPI flash.  It works fine when
enable_dma is disabled, but doesn't work at all when turning DMA on.  We
get just 0xff bytes back when trying to read the device.

Change the code around so that it programs the SPI first and then enables
DMA, it seems to work a lot better ...

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
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>
drivers/spi/spi_bfin5xx.c