aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/pci_endpoint_test.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2023-05-11 01:42:10 -0300
committerJoerg Roedel <[email protected]>2023-05-23 08:15:56 +0200
commit8b4eb75ee50e6f4606f88debf44aeb47937057d4 (patch)
tree0e133af0c686dda30121f539ef34668e94d9d4af /drivers/misc/pci_endpoint_test.c
parentdfddd54dc77c4519ee3c94e7462b1c035c69a031 (diff)
iommu: Consolidate the code to calculate the target default domain type
Put all the code to calculate the default domain type into one function. Make the function able to handle the iommu_change_dev_def_domain() by taking in the target domain type and erroring out if the target type isn't reachable. This makes it really clear that specifying a 0 type during iommu_change_dev_def_domain() will have the same outcome as the normal probe path. Remove the obfuscating use of __iommu_group_for_each_dev() and related struct __group_domain_type. Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Tested-by: Niklas Schnelle <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/misc/pci_endpoint_test.c')
0 files changed, 0 insertions, 0 deletions