On Wed, 2025-10-08 at 10:15 +0000, Duan, Zhenzhong wrote:
> 
> 
> 
> > -----Original Message-----
> > From: Cédric Le Goater <[[email protected]](mailto:[email protected])>
> > Subject: Re: [PATCH v2 3/3] pci: Fix wrong parameter passing to
> > pci_device_get_iommu_bus_devfn()
> > 
> > On 9/29/25 05:42, Zhenzhong Duan wrote:
> > 
> > > The 2nd parameter of pci_device_get_iommu_bus_devfn() about root
> > 
> > PCIBus
> > 
> > > backed by an IOMMU for the PCI device, the 3rd is about aliased PCIBus
> > > of the PCI device.
> > > 
> > > Meanwhile the 3rd and 4th parameters are optional, pass NULL if they
> > > are not needed.
> > > 
> > > Signed-off-by: Zhenzhong Duan 
> > > <[[email protected]](mailto:[email protected])>
> > 
> > 
> > The commit log should mention potential consequences of this change.
> 
> 
> Without fix, the callback function may not be called as iommu_ops is set  
> for iommu_bus rather than bus. Luckily, there is no user of those  
> functions yet, so no real issue currently.
> 
> 
> 
> > Will this fix need to be backported ? up to ~9.1
> 
> 
> I think no need, Clement could correct me if above explanation is wrong.

That's correct, thanks Zhenzhong

> 
> Thanks  
> Zhenzhong
> 

Reply via email to