]> git.itanic.dy.fi Git - linux-stable/commit
m68k: don't provide arch_dma_alloc for nommu/coldfire
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Oct 2023 07:52:27 +0000 (09:52 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Oct 2023 14:38:55 +0000 (16:38 +0200)
commit7a360df941a4bd60847208de59f1ac8b166265a2
treeb7697b7e734e8c0af0d9ed4fac41e4a257d6e176
parentffd32a92b33b95771f63727560fa12c75191e705
m68k: don't provide arch_dma_alloc for nommu/coldfire

Coldfire cores configured with a data cache can't provide coherent
DMA allocations at all.

Instead of returning non-coherent kernel memory in this case,
return NULL and fail the allocation.

The only driver that used to rely on the previous behavior (fec) has
been switched to use non-coherent allocations for this case recently.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/Kconfig
arch/m68k/kernel/dma.c