iommu/dma: Rationalise types for DMA masks
authorRobin Murphy <robin.murphy@arm.com>
Wed, 11 Dec 2019 18:33:26 +0000 (18:33 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 17 Dec 2019 10:17:28 +0000 (11:17 +0100)
commitbd036d2fdd374fa252abfc221e1a1280eee42f89
tree6fc50ea3610030c64a4dac9139981c3c0b1e9f81
parent472d26df5e8075eda677b6be730e0fbf434ff2a8
iommu/dma: Rationalise types for DMA masks

Since iommu_dma_alloc_iova() combines incoming masks with the u64 bus
limit, it makes more sense to pass them around in their native u64
rather than converting to dma_addr_t early. Do that, and resolve the
remaining type discrepancy against the domain geometry with a cheeky
cast to keep things simple.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c