]> asedeno.scripts.mit.edu Git - linux.git/commit
sparc64/iommu: allow large DMA masks
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Feb 2019 12:27:30 +0000 (13:27 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:28:58 +0000 (07:28 -0700)
commit254ecb1601ebbdf0eeda4156f4c55254cb9addaf
tree73a4d602775a2080e1ddc215ea96ee87a5952caf
parentc54fc984dae5fb0007ddfc46dabde6631735689d
sparc64/iommu: allow large DMA masks

We've been moving to a model where the device just sets the DMA mask
supported by it, instead of having to fallback to something it thinks
the platform might support.  Sparc64 is the remaining holdout forcing
drivers to supply a matching mask.  Change dma_4u_supported to just
check if the supplied dma mask is large enough as nothing in the
iommu.c code (or the core DMA code) actually looks at the DMA mask
later on.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/iommu.c