Browse Source

microblaze: Add support for DMA_BIDIRECTIONAL

CDMA requires DMA_BIDIRECTIONAL option.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek 14 years ago
parent
commit
5323c48b0c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/microblaze/kernel/dma.c

+ 1 - 0
arch/microblaze/kernel/dma.c

@@ -26,6 +26,7 @@ static inline void __dma_sync_page(unsigned long paddr, unsigned long offset,
 {
 {
 	switch (direction) {
 	switch (direction) {
 	case DMA_TO_DEVICE:
 	case DMA_TO_DEVICE:
+	case DMA_BIDIRECTIONAL:
 		flush_dcache_range(paddr + offset, paddr + offset + size);
 		flush_dcache_range(paddr + offset, paddr + offset + size);
 		break;
 		break;
 	case DMA_FROM_DEVICE:
 	case DMA_FROM_DEVICE: