]> git.baikalelectronics.ru Git - kernel.git/commit
spi: au1550_spi full duplex dma fix
authorJan Nikitenko <jan.nikitenko@gmail.com>
Mon, 1 Dec 2008 21:13:56 +0000 (13:13 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 03:55:24 +0000 (19:55 -0800)
commit2886f5501847740d3905474b978a8d8e8e6a2772
tree418741f7add461e32f4c2801e8a693f9dbd0455b
parenta4c07546a619ee3103d2859602159d60ac05077b
spi: au1550_spi full duplex dma fix

Fix unsafe order in dma mapping operation: always flush data from the
cache *BEFORE* invalidating it, to allow full duplex transfers where the
same buffer may be used for both writes and reads.  Tested with mmc-spi.

Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/au1550_spi.c