]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS/alchemy: factor out the DMA coherent setup
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 09:56:37 +0000 (10:56 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 13 Feb 2021 08:51:45 +0000 (09:51 +0100)
commit51a790526134d6e302021b1086a487727093bfa1
tree706e3fd7cf657bca6e64d9095f75dd23d1ae09f9
parent452862038f70b3aa9d2cce0c450299663048a847
MIPS/alchemy: factor out the DMA coherent setup

Factor out a alchemy_dma_coherent helper that determines if the platform
is DMA coherent.  Also stop initializing the hw_coherentio variable, given
that is only ever set to a non-zero value by the malta setup code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/common/setup.c