Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ca16d26 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().

parent abb4ae46
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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