iommu/fsl: Always allocate a group for non-pci devices
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 17 May 2023 00:35:26 +0000 (21:35 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 1 Jun 2023 09:47:47 +0000 (11:47 +0200)
commit5f6489723df9a292328a8defc02227d660eea1b9
treebd2ce58c366292d84d839a110d935fffda2c044b
parent44c026a73be8038f03dbdeef028b642880cf1511
iommu/fsl: Always allocate a group for non-pci devices

fsl_pamu_device_group() is only called if dev->iommu_group is NULL, so
iommu_group_get() always returns NULL. Remove this test and just allocate
a group. Call generic_device_group() for this like the other drivers.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1-v2-ce71068deeec+4cf6-fsl_rm_groups_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu_domain.c