OSDN Git Service

dma-direct: unify the dma_capable definitions
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Nov 2019 16:06:04 +0000 (17:06 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Nov 2019 19:31:40 +0000 (20:31 +0100)
commit130c1ccbf55330b55e82612a6e54eebb82c9d746
treed61b03639384aa3357871b756082ff6966dcbf38
parent56e35f9c5b87ec1ae93e483284e189c84388de16
dma-direct: unify the dma_capable definitions

Currently each architectures that wants to override dma_to_phys and
phys_to_dma also has to provide dma_capable.  But there isn't really
any good reason for that.  powerpc and mips just have copies of the
generic one minus the latests fix, and the arm one was the inspiration
for said fix, but misses the bus_dma_mask handling.
Make all architectures use the generic version instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
arch/arm/include/asm/dma-direct.h
arch/mips/include/asm/dma-direct.h
arch/powerpc/include/asm/dma-direct.h
include/linux/dma-direct.h