Re: [PATCH 05/11] iommu: Add iommu_init/deinit_driver() paired functions

Jason Gunthorpe
2023-04-26T14:36:27Z

On Wed, Apr 26, 2023 at 09:41:38AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe <jgg@nvidia.com>
> > Sent: Thursday, April 20, 2023 12:12 AM
> >
> > +static int iommu_init_driver(struct device *dev, const struct iommu_ops
> > *ops)
>
> would iommu_init_device() better fit the purpose?

Yeah.. that does seem better

Broadly this mostly sets up dev->iommu and gets the driver
connected to the device

Jason