sparc64: refactor the ali DMA quirk
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Feb 2019 08:06:31 +0000 (09:06 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:28:53 +0000 (07:28 -0700)
commitc54fc984dae5fb0007ddfc46dabde6631735689d
tree405f8c2a91ab37bbb46d8255ca8378870eac4bdb
parent7753a91e78811f6fcefc9f59630286a698b814b2
sparc64: refactor the ali DMA quirk

Do the quirk first in the dma_supported routines, as we don't need
any of the other checks for it, and remove the duplicate mask checking
that is already done by the callers.

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