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

Commit 4e7f7266 authored by Felix Fietkau's avatar Felix Fietkau Committed by Ralf Baechle
Browse files

MIPS: Remove unnecessary platform dma helper functions



The semantics stay the same - on Cavium Octeon the functions were dead
code (it overrides the MIPS DMA ops) - on other platforms they contained
no code at all.

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5720/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8a8594a7
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -52,23 +52,11 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 0;
}

static inline void plat_extra_sync_for_device(struct device *dev)
{
	BUG();
}

static inline int plat_device_is_coherent(struct device *dev)
{
	return 1;
}

static inline int plat_dma_mapping_error(struct device *dev,
					 dma_addr_t dma_addr)
{
	BUG();
	return 0;
}

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);

+0 −10
Original line number Diff line number Diff line
@@ -47,16 +47,6 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 1;
}

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

static inline int plat_dma_mapping_error(struct device *dev,
					 dma_addr_t dma_addr)
{
	return 0;
}

static inline int plat_device_is_coherent(struct device *dev)
{
#ifdef CONFIG_DMA_COHERENT
+0 −10
Original line number Diff line number Diff line
@@ -58,16 +58,6 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 1;
}

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

static inline int plat_dma_mapping_error(struct device *dev,
					 dma_addr_t dma_addr)
{
	return 0;
}

static inline int plat_device_is_coherent(struct device *dev)
{
	return 1;		/* IP27 non-cohernet mode is unsupported */
+0 −11
Original line number Diff line number Diff line
@@ -80,17 +80,6 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 1;
}

static inline void plat_extra_sync_for_device(struct device *dev)
{
	return;
}

static inline int plat_dma_mapping_error(struct device *dev,
					 dma_addr_t dma_addr)
{
	return 0;
}

static inline int plat_device_is_coherent(struct device *dev)
{
	return 0;		/* IP32 is non-cohernet */
+0 −10
Original line number Diff line number Diff line
@@ -48,16 +48,6 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
	return 1;
}

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

static inline int plat_dma_mapping_error(struct device *dev,
					 dma_addr_t dma_addr)
{
	return 0;
}

static inline int plat_device_is_coherent(struct device *dev)
{
	return 0;
Loading