]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: dma-default: Don't check hw_coherentio if device is non-coherent
authorPaul Burton <paul.burton@imgtec.com>
Wed, 5 Oct 2016 17:18:15 +0000 (18:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 16:01:45 +0000 (18:01 +0200)
commitcfa93fb9c2eae805f2c16d72bad04ca49b6e16d2
tree49fd4fe0ee0eac879ddd62cde0a020f42ef03cd3
parentf23020230e682a43cc4706cabb041bba469df2d6
MIPS: dma-default: Don't check hw_coherentio if device is non-coherent

There are no cases where plat_device_is_coherent() will return zero
whilst hw_coherentio is non-zero, and acting any differently in such a
case doesn't make much sense - if a device is non-coherent with the CPU
caches then access to memory "coherent" with DMA must be uncached. Clean
up the nonsensical case.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14348/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c