Re: [PATCH v3 1/5] iommu/amd: Refactor device probe and capability initialization

From: Jason Gunthorpe

Date: Mon Aug 24 2026 - 14:15:06 EST


> [ ... 14 lines skipped ... ]
> @@ -675,7 +675,8 @@ static void pdev_disable_caps(struct pci_dev *pdev)
> * This function checks if the driver got a valid device from the caller to
> * avoid dereferencing invalid pointers.
> */
> -static bool check_device(struct device *dev)
> +static bool iommu_lookup_device(struct device *dev,
> + struct amd_iommu **iommu_out, u16 *devid_out)
> {

If we are touching the names driver functions should not be called
iommu_*, it is confusing..

Otherwise looks OK

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

--
Jason