[PATCH v2 0/9] PCI: add help pci_dev_id

Heiner Kallweit hkallweit1 at gmail.com
Wed Apr 24 19:10:21 UTC 2019


In several places in the kernel we find PCI_DEVID used like this:
PCI_DEVID(dev->bus->number, dev->devfn) Therefore create a helper
for it.

v2:
- apply the change to all affected places in the kernel

Heiner Kallweit (9):
  PCI: add helper pci_dev_id
  PCI: use helper pci_dev_id
  r8169: use new helper pci_dev_id
  powerpc/powernv/npu: use helper pci_dev_id
  drm/amdkfd: use helper pci_dev_id
  iommu/amd: use helper pci_dev_id
  iommu/vt-d: use helper pci_dev_id
  stmmac: pci: use helper pci_dev_id
  platform/chrome: chromeos_laptop: use helper pci_dev_id

 arch/powerpc/platforms/powernv/npu-dma.c         | 14 ++++++--------
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c        |  3 +--
 drivers/iommu/amd_iommu.c                        |  2 +-
 drivers/iommu/intel-iommu.c                      |  2 +-
 drivers/iommu/intel_irq_remapping.c              |  2 +-
 drivers/net/ethernet/realtek/r8169.c             |  3 +--
 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c |  2 +-
 drivers/pci/msi.c                                |  6 +++---
 drivers/pci/search.c                             | 10 +++-------
 drivers/platform/chrome/chromeos_laptop.c        |  2 +-
 include/linux/pci.h                              |  5 +++++
 11 files changed, 24 insertions(+), 27 deletions(-)

-- 
2.21.0



More information about the amd-gfx mailing list