aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2017-08-27 18:10:22 +0200
committerRalf Baechle <[email protected]>2017-08-30 00:57:29 +0200
commit1dd71588c2c622d0c8c09a623c6baa39e691cb5e (patch)
treedeaeee48c1e1067bab3d1171def3ae8b7fb73fd1
parentc2c03291fba35dbba1712a0d9a679a43567d36a4 (diff)
MIPS: Don't use dma_cache_sync to implement fd_cacheflush
The floppy drivers doesn't otherwise use the DMA API, so indirecting through it just for cache flushing in MIPS-specific code just call dma_cache_wback_inv directly. Signed-off-by: Christoph Hellwig <[email protected]> Cc: [email protected] Cc: Marek Szyprowski <[email protected]> Cc: Robin Murphy <[email protected]> Cc: Michal Simek <[email protected]> Cc: David Howells <[email protected]> Cc: Guan Xuetao <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/17183/ Signed-off-by: Ralf Baechle <[email protected]>
-rw-r--r--arch/mips/include/asm/floppy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/floppy.h b/arch/mips/include/asm/floppy.h
index d75aed36480a..021d09ae5670 100644
--- a/arch/mips/include/asm/floppy.h
+++ b/arch/mips/include/asm/floppy.h
@@ -10,11 +10,11 @@
#ifndef _ASM_FLOPPY_H
#define _ASM_FLOPPY_H
-#include <linux/dma-mapping.h>
+#include <asm/io.h>
static inline void fd_cacheflush(char * addr, long size)
{
- dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL);
+ dma_cache_wback_inv((unsigned long)addr, size);
}
#define MAX_BUFFER_SECTORS 24