From: Mike Frysinger Date: Tue, 7 Apr 2009 02:00:41 +0000 (-0700) Subject: Blackfin SPI Driver: get dma working for SPI flashes X-Git-Tag: v2.6.30-rc1~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d6f5995137ba4dc49e9337185ac0a8753f8f69;p=pandora-kernel.git 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 Signed-off-by: Bryan Wu Acked-by: David Brownell Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed