Re: [PATCH] powerpc/powernv/pci: use pci_dev_id() to simplify the code

2023-08-23 Thread Michael Ellerman
On Fri, 04 Aug 2023 16:04:35 +0800, Xiongfeng Wang wrote: > PCI core API pci_dev_id() can be used to get the BDF number for a pci > device. We don't need to compose it mannually. Use pci_dev_id() to > simplify the code a little bit. > > Applied to powerpc/next. [1/1] powerpc/powernv/pci: use pc

Re: [PATCH] powerpc/powernv/pci: use pci_dev_id() to simplify the code

2023-08-04 Thread Frederic Barrat
On 04/08/2023 10:04, Xiongfeng Wang wrote: PCI core API pci_dev_id() can be used to get the BDF number for a pci device. We don't need to compose it mannually. Use pci_dev_id() to simplify the code a little bit. Signed-off-by: Xiongfeng Wang --- LGTM Reviewed-by: Frederic Barrat Fred

[PATCH] powerpc/powernv/pci: use pci_dev_id() to simplify the code

2023-08-04 Thread Xiongfeng Wang
PCI core API pci_dev_id() can be used to get the BDF number for a pci device. We don't need to compose it mannually. Use pci_dev_id() to simplify the code a little bit. Signed-off-by: Xiongfeng Wang --- arch/powerpc/platforms/powernv/pci-ioda.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele