diff options
| author | Lu Baolu <[email protected]> | 2023-03-22 06:49:51 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2023-03-22 14:45:15 +0000 |
| commit | 24dfb197c3b7d274e5f78fce5e63392526a933e9 (patch) | |
| tree | 3af5af7bebef7537baa64dfcf0aba1219217a3ac /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | iommu: Use of_property_present() for testing DT property presence (diff) | |
| download | kernel-24dfb197c3b7d274e5f78fce5e63392526a933e9.tar.gz kernel-24dfb197c3b7d274e5f78fce5e63392526a933e9.zip | |
iommu/ipmmu-vmsa: Call arm_iommu_release_mapping() in release path
In the iommu driver's release_device operation, the driver should detach
the device from any attached domain and release the resources allocated
in the probe_device and probe_finalize paths.
Replace arm_iommu_detach_device() with arm_iommu_release_mapping() in the
release path of the ipmmu-vmsa driver. The device_release callback is
called in device_del(), this device is not coming back. Zeroing out
pointers and testing for a condition which cannot be true by construction
is simply a waste of time and code.
The bonus is that it also removes a obstacle of arm_iommu_detach_device()
re-entering the iommu core during release_device. With this removed, the
iommu core code could be simplified a lot.
Signed-off-by: Jason Gunthorpe <[email protected]>
Suggested-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/linux-iommu/[email protected]/
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
