]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: only select ARCH_HAS_UNCACHED_SEGMENT for non-coherent platforms
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Jun 2019 16:43:47 +0000 (18:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 3 Jul 2019 22:29:52 +0000 (15:29 -0700)
commit651a67382ec06e7cde693c603316517874e89cfa
tree21e98a541d15b97840c0a33bb303e0c91f7a5aa6
parent119c5bf1bf6edfa0286d6b126ecebaa8a8a1e994
MIPS: only select ARCH_HAS_UNCACHED_SEGMENT for non-coherent platforms

While mips might architecturally have the uncached segment all the time,
the infrastructure to use it is only need on platforms where DMA is
at least partially incoherent.  Only select it for those configuration
to fix a build failure as the arch_dma_prep_coherent symbol is also only
provided for non-coherent platforms.

Fixes: a6722d043118 ("MIPS: use the generic uncached segment support in dma-direct")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
arch/mips/Kconfig