[PATCH RFC 06/17] iommu: Add iommu_fwspec_alloc/dealloc()

2023-11-03 Thread Jason Gunthorpe
Allow fwspec to exist independently from the dev->iommu by providing functions to allow allocating and freeing the raw struct iommu_fwspec. Reflow the existing paths to call the new alloc/dealloc functions. Signed-off-by: Jason Gunthorpe --- drivers/iommu/iommu.c | 82 ++

Re: [PATCH RFC 06/17] iommu: Add iommu_fwspec_alloc/dealloc()

2023-11-13 Thread Jerry Snitselaar
Reviewed-by: Jerry Snitselaar