]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit4e253d23003b54c88d0919d6088be74f00eec3c7
tree418741f7add461e32f4c2801e8a693f9dbd0455b
parent6a010b56e9bd2fdb32efd153e1a08305949b6b53
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