iommu/ipmmu-vmsa: Simplify group allocation
authorRobin Murphy <robin.murphy@arm.com>
Fri, 13 Oct 2017 18:23:40 +0000 (19:23 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 17:27:10 +0000 (10:27 -0700)
commitb354c73edc7eb8d6ee643866e9e4de7842213b06
treed63b716d4ce708ddbd0e04c193f3489109c4f689
parent1c7e7c0278df968221a5edb1a293423e13b13814
iommu/ipmmu-vmsa: Simplify group allocation

We go through quite the merry dance in order to find masters behind the
same IPMMU instance, so that we can ensure they are grouped together.
None of which is really necessary, since the master's private data
already points to the particular IPMMU it is associated with, and that
IPMMU instance data is the perfect place to keep track of a per-instance
group directly.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/ipmmu-vmsa.c