]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/io-pgtable-arm: Use address conversion consistently
authorMostafa Saleh <smostafa@google.com>
Wed, 13 May 2026 21:52:03 +0000 (21:52 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 19 May 2026 09:03:45 +0000 (11:03 +0200)
commitadb77e757680dcfa79ccc554ec51d42cf56ef69a
tree0e8266aefc6403266c8cd2e50ff9a9698b6374f9
parentd996116cde972756e8415d6e070b960f6f6a8f6c
iommu/io-pgtable-arm: Use address conversion consistently

Use consistent address conversions in the driver:
- virt_to_phys(): For all virtual to physical address conversion,
  convert __pa users as we don’t need to rely on it type casting.
- phys_to_virt(): For all physical to virtual address conversion,
  similarly, convert __va users.

That changes nothing at all. However, it will be useful when
compiling this file for the KVM hypervisor as it can cleanly
replace virt_to_phys/phys_to_virt

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/io-pgtable-arm.c