]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Blackfin SPI Driver: ensure cache coherency before doing DMA
authorVitja Makarov <vitja.makarov@gmail.com>
Tue, 7 Apr 2009 02:00:31 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:31:04 +0000 (08:31 -0700)
commit8cf5858c51f88208fe56b195251ab4f21265386c
tree6095e2a5f9cb5d0b19afef30fd74bb360c4a42db
parent3bcfa9e47a7d1be6faef3be6c4b2049e585e2f38
Blackfin SPI Driver: ensure cache coherency before doing DMA

Flush or invalidate caches before doing DMA transfer, if needed.

[Mike Frysinger <vapier.adi@gmail.com>: add comment to address the
issue "Full duplex only works for non-DMA transfers".]
Signed-off-by: Vitja Makarov <vitja.makarov@gmail.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
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