diff options
author | 2011-02-10 08:37:49 +0100 | |
---|---|---|
committer | 2011-03-09 08:09:57 +0100 | |
commit | 5323c48b0cfd98d93eb29907450ca48d009545ad (patch) | |
tree | adfedc74d7f4185e085e36939a59e1d490306d87 /arch/microblaze/kernel/dma.c | |
parent | microblaze: trivial: Add one empty line (diff) | |
download | linux-5323c48b0cfd98d93eb29907450ca48d009545ad.tar.gz linux-5323c48b0cfd98d93eb29907450ca48d009545ad.tar.bz2 linux-5323c48b0cfd98d93eb29907450ca48d009545ad.zip |
microblaze: Add support for DMA_BIDIRECTIONAL
CDMA requires DMA_BIDIRECTIONAL option.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/dma.c')
-rw-r--r-- | arch/microblaze/kernel/dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c index 79c74659f204..393e6b2db688 100644 --- a/arch/microblaze/kernel/dma.c +++ b/arch/microblaze/kernel/dma.c @@ -26,6 +26,7 @@ static inline void __dma_sync_page(unsigned long paddr, unsigned long offset, { switch (direction) { case DMA_TO_DEVICE: + case DMA_BIDIRECTIONAL: flush_dcache_range(paddr + offset, paddr + offset + size); break; case DMA_FROM_DEVICE: |