Skip to content

Commit 634286f

Browse files
committed
MIPS: IP27: Switch from DMA_IP27 to DMA_COHERENT
The special IP27 DMA code selected by DMA_IP27 has been removed a while ago turning DMA_IP27 into almost a nop. Also fixup the broken logic of its last users memcpy.S and memcpy-inatomic.s. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 732f046 commit 634286f

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ config SGI_IP27
351351
select ARC64
352352
select BOOT_ELF64
353353
select DEFAULT_SGI_PARTITION
354-
select DMA_IP27
354+
select DMA_COHERENT
355355
select SYS_HAS_EARLY_PRINTK
356356
select HW_HAS_PCI
357357
select NR_CPUS_DEFAULT_64
@@ -761,9 +761,6 @@ config CFE
761761
config DMA_COHERENT
762762
bool
763763

764-
config DMA_IP27
765-
bool
766-
767764
config DMA_NONCOHERENT
768765
bool
769766
select DMA_NEED_PCI_MAP_STATE

‎arch/mips/configs/ip27_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CONFIG_GENERIC_TIME=y
5353
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
5454
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
5555
CONFIG_ARC=y
56-
CONFIG_DMA_IP27=y
56+
CONFIG_DMA_COHERENT=y
5757
CONFIG_EARLY_PRINTK=y
5858
CONFIG_SYS_HAS_EARLY_PRINTK=y
5959
# CONFIG_NO_IOPORT is not set

‎arch/mips/lib/memcpy-inatomic.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* end of memory on some systems. It's also a seriously bad idea on non
2222
* dma-coherent systems.
2323
*/
24-
#if !defined(CONFIG_DMA_COHERENT) || !defined(CONFIG_DMA_IP27)
24+
#ifdef CONFIG_DMA_NONCOHERENT
2525
#undef CONFIG_CPU_HAS_PREFETCH
2626
#endif
2727
#ifdef CONFIG_MIPS_MALTA

‎arch/mips/lib/memcpy.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* end of memory on some systems. It's also a seriously bad idea on non
2222
* dma-coherent systems.
2323
*/
24-
#if !defined(CONFIG_DMA_COHERENT) || !defined(CONFIG_DMA_IP27)
24+
#ifdef CONFIG_DMA_NONCOHERENT
2525
#undef CONFIG_CPU_HAS_PREFETCH
2626
#endif
2727
#ifdef CONFIG_MIPS_MALTA

0 commit comments

Comments
 (0)