projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb4ae4
)
[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().
author
Ralf Baechle
<ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:03 +0000
(23:46 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:03 +0000
(23:46 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/floppy.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-mips/floppy.h
b/include/asm-mips/floppy.h
index aa1ef8b352cc74baf2376c469e461a8fcfc13ddc..dcadd8562523d51c79d6429f1090da3a7238267b 100644
(file)
--- a/
include/asm-mips/floppy.h
+++ b/
include/asm-mips/floppy.h
@@
-10,9
+10,11
@@
#ifndef _ASM_FLOPPY_H
#define _ASM_FLOPPY_H
+#include <linux/dma-mapping.h>
+
static inline void fd_cacheflush(char * addr, long size)
{
- dma_cache_
wback_inv((unsigned long)addr,size
);
+ dma_cache_
sync(NULL, addr, size, DMA_BIDIRECTIONAL
);
}
#define MAX_BUFFER_SECTORS 24