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

Jason Gunthorpe jgg at nvidia.com
Thu Apr 27 00:36:17 AEST 2023


On Wed, Apr 26, 2023 at 09:41:38AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe <jgg at 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


More information about the Linuxppc-dev mailing list