Re: [PATCH v5 6/7] iommu: Retire bus ops
From: Jerry Snitselaar
Date: Wed Oct 18 2023 - 19:37:17 EST
On Wed, Oct 11, 2023 at 07:14:53PM +0100, Robin Murphy wrote:
> With the rest of the API internals converted, it's time to finally
> tackle probe_device and how we bootstrap the per-device ops association
> to begin with. This ends up being disappointingly straightforward, since
> fwspec users are already doing it in order to find their of_xlate
> callback, and it works out that we can easily do the equivalent for
> other drivers too. Then shuffle the remaining awareness of iommu_ops
> into the couple of core headers that still need it, and breathe a sigh
> of relief.
>
> Ding dong the bus ops are gone!
>
> CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> Acked-by: Christoph Hellwig <hch@xxxxxx>
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>
>
> ---
>
> v4: Don't forget new reference in iommu_device_register_bus()
> ---
> drivers/iommu/iommu.c | 31 ++++++++++++++++++-------------
> include/acpi/acpi_bus.h | 2 ++
> include/linux/device.h | 1 -
> include/linux/device/bus.h | 5 -----
> include/linux/dma-map-ops.h | 1 +
> 5 files changed, 21 insertions(+), 19 deletions(-)
>
Reviewed-by: Jerry Snitselaar <jsnitsel@xxxxxxxxxx>