projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2e1d2
)
microblaze: Add support for DMA_BIDIRECTIONAL
author
Michal Simek
<monstr@monstr.eu>
Thu, 10 Feb 2011 07:37:49 +0000
(08:37 +0100)
committer
Michal Simek
<monstr@monstr.eu>
Wed, 9 Mar 2011 07:09:57 +0000
(08:09 +0100)
CDMA requires DMA_BIDIRECTIONAL option.
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/dma.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/dma.c
b/arch/microblaze/kernel/dma.c
index 79c74659f204b7da1aed7172f255f4556cbc77fb..393e6b2db688545aac0a1784f25ad51d73d89567 100644
(file)
--- 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: