mips: setup: fix setnocoherentio() boolean setting
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 21 Feb 2022 17:50:29 +0000 (09:50 -0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 22 Feb 2022 08:35:02 +0000 (09:35 +0100)
Correct a typo/pasto: setnocoherentio() should set
dma_default_coherent to false, not true.

Fixes: 14ac09a65e19 ("MIPS: refactor the runtime coherent vs noncoherent DMA indicators")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/setup.c

index f979adfd4fc202b31527890f086d8b4c11d7fc64..ef73ba1e0ec10474dd108c89445608039a4043ab 100644 (file)
@@ -803,7 +803,7 @@ early_param("coherentio", setcoherentio);
 
 static int __init setnocoherentio(char *str)
 {
-       dma_default_coherent = true;
+       dma_default_coherent = false;
        pr_info("Software DMA cache coherency (command line)\n");
        return 0;
 }