Re: [PATCH v2 2/7] iommu: Add reset_device_done callback for hardware fault recovery

Nicolin Chen
2026-03-18T18:43:05Z

On Wed, Mar 18, 2026 at 01:59:58PM +0800, Baolu Lu wrote:
> On 3/18/26 03:15, Nicolin Chen wrote:
> > + if (ops && ops->reset_device_done)
> > + ops->reset_device_done(&pdev->dev);
>
> Nit: dev_iommu_ops() ensures a valid iommu "ops". There is no need to
> check "ops != NULL" here. Just
>
> if (ops->reset_device_done)
> ops->reset_device_done(&pdev->dev);

Yes, right.

Thanks!
Nicolin