]> git.baikalelectronics.ru Git - kernel.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)
commit605d6e06c992ef0474d9dc6182786f816fc56ba5
tree49fd4fe0ee0eac879ddd62cde0a020f42ef03cd3
parentbb7f057066fb79bff333efa2b1a3f1a41689de83
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