]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
spi_imx: full duplex dma corruption bugfix
authorAndrea Paterniani <a.paterniani@swapp-eng.it>
Wed, 19 Nov 2008 23:36:26 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Nov 2008 02:49:58 +0000 (18:49 -0800)
commit3b45d6380c392e402adc460e4ccf7d41e0caf82a
tree39526d9c921330fbdd57c864364b5ce3cdbd8751
parentb3b4dc8840a8fdbe495723d35cd976d781fd42fa
spi_imx: full duplex dma corruption bugfix

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.

Signed-off-by: Andrea Paterniani <a.paterniani@swapp-eng.it>
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/spi_imx.c