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

Commit 0acbfc66 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: DMA: Implement platform hook to perform post-DMA cache flushes.

parent 25307380
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -69,4 +69,8 @@ static inline int plat_device_is_coherent(struct device *dev)
#endif
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

#endif /* __ASM_MACH_ATH25_DMA_COHERENCE_H */
+4 −0
Original line number Diff line number Diff line
@@ -45,4 +45,8 @@ static inline int plat_device_is_coherent(struct device *dev)
	return 0;
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

#endif /* __ASM_MACH_BMIPS_DMA_COHERENCE_H */
+4 −0
Original line number Diff line number Diff line
@@ -57,6 +57,10 @@ static inline int plat_device_is_coherent(struct device *dev)
	return 1;
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);

+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,10 @@ static inline int plat_device_is_coherent(struct device *dev)
	return coherentio;
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

#ifdef CONFIG_SWIOTLB
static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 1;
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

static inline int plat_device_is_coherent(struct device *dev)
{
	return 1;		/* IP27 non-cohernet mode is unsupported */
Loading