Re: [PATCH v6 4/5] iommu: Introduce pci_dev_reset_iommu_prepare/done()

Nicolin Chen
2025-11-19T02:58:09Z

On Tue, Nov 18, 2025 at 04:52:10PM -0800, Nicolin Chen wrote:
> +/* PCI device reset functions */
> +int pci_dev_reset_iommu_prepare(struct pci_dev *pdev);
> +void pci_dev_reset_iommu_done(struct pci_dev *pdev);
> #else /* CONFIG_IOMMU_API */
>
> struct iommu_ops {};
> @@ -1509,6 +1513,15 @@ static inline ioasid_t iommu_alloc_global_pasid(struct device *dev)
> }
>
> static inline void iommu_free_global_pasid(ioasid_t pasid) {}
> +
> +static inline int pci_dev_reset_iommu_prepare(struct device *dev)
> +{
> + return 0;
> +}
> +
> +static inline void pci_dev_reset_iommu_done(struct device *dev)

Ah, I forgot to update these two using struct pci_dev..

Will fix this in v7.

Nicolin