iommu/dma: Clean up MSI IOVA allocation
authorRobin Murphy <robin.murphy@arm.com>
Fri, 31 Mar 2017 14:46:06 +0000 (15:46 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Apr 2017 10:45:03 +0000 (12:45 +0200)
commita44e6657585b15eeebf5681bfcc7ce0b002429c2
tree3d2a42f254fc48f6bd937ea3e5aca606595fd71a
parent842fe519f68b4d17ba53c66d69f22a72b1ad08cf
iommu/dma: Clean up MSI IOVA allocation

Now that allocation is suitably abstracted, our private alloc/free
helpers can drive the trivial MSI cookie allocator directly as well,
which lets us clean up its exposed guts from iommu_dma_map_msi_msg() and
simplify things quite a bit.

Reviewed-by: Nate Watterson <nwatters@codeaurora.org>
Tested-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c