]> git.baikalelectronics.ru Git - kernel.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)
commitd1a3d15f15bbedf51878d71e47f06462908f4ebe
tree36f45d8415d190db572be32dd12ec24424c98ad5
parentc94dfe2046c8b890c2e6a3003be4748a5a7e001f
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