All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 00/29] PCI: deprecate pci_get_bus_and_slot()
@ 2017-11-27 16:57 ` Sinan Kaya
  0 siblings, 0 replies; 172+ messages in thread
From: Sinan Kaya @ 2017-11-27 16:57 UTC (permalink / raw)
  To: linux-pci, timur; +Cc: linux-arm-msm, intel-gfx, linux-arm-kernel

Deprecate pci_get_bus_and_slot() in favor of pci_get_domain_bus_and_slot()
in order to remove domain 0 assumptions in the kernel.

pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as
where a PCI device is present. This restricts the device drivers to be
reused for other domain numbers.

Use pci_get_domain_bus_and_slot() with a domain number of 0 where we can't
extract the domain number. Other places, use the actual domain number from
the device.

Changes from v2:
* commit text cleanups
* remove implicit busfn assignments and use PCI_DEVFN call in place.
* change storage type for local copy of pci_domain_nr() value to int

Sinan Kaya (29):
  alpha/PCI: deprecate pci_get_bus_and_slot()
  powerpc/PCI: deprecate pci_get_bus_and_slot()
  x86/PCI: deprecate pci_get_bus_and_slot()
  ata: deprecate pci_get_bus_and_slot()
  agp: nvidia: deprecate pci_get_bus_and_slot()
  edd: deprecate pci_get_bus_and_slot()
  ibft: deprecate pci_get_bus_and_slot()
  drm/gma500: deprecate pci_get_bus_and_slot()
  drm/i915: deprecate pci_get_bus_and_slot()
  drm/nouveau: deprecate pci_get_bus_and_slot()
  Drivers: ide: deprecate pci_get_bus_and_slot()
  iommu/amd: deprecate pci_get_bus_and_slot()
  powerpc/powermac: deprecate pci_get_bus_and_slot()
  bnx2x: deprecate pci_get_bus_and_slot()
  pch_gbe: deprecate pci_get_bus_and_slot()
  PCI: cpqhp: deprecate pci_get_bus_and_slot()
  PCI: ibmphp: deprecate pci_get_bus_and_slot()
  PCI/quirks: deprecate pci_get_bus_and_slot()
  PCI/syscall: deprecate pci_get_bus_and_slot()
  xen: deprecate pci_get_bus_and_slot()
  openprom: deprecate pci_get_bus_and_slot()
  [media] atomisp: deprecate pci_get_bus_and_slot()
  staging: rts5208: remove rtsx_read_pci_cfg_byte()
  backlight: deprecate pci_get_bus_and_slot()
  video: fbdev: intelfb: deprecate pci_get_bus_and_slot()
  video: fbdev: nvidia: deprecate pci_get_bus_and_slot()
  video: fbdev: riva: deprecate pci_get_bus_and_slot()
  i7300_idle: remove unused file
  PCI: remove pci_get_bus_and_slot() function

 arch/alpha/kernel/pci.c                            |  2 +-
 arch/alpha/kernel/sys_nautilus.c                   |  2 +-
 arch/powerpc/kernel/pci_32.c                       |  3 +-
 arch/powerpc/platforms/powermac/feature.c          |  2 +-
 arch/powerpc/sysdev/mv64x60_pci.c                  |  4 +-
 arch/x86/pci/irq.c                                 |  3 +-
 drivers/ata/pata_ali.c                             |  3 +-
 drivers/char/agp/nvidia-agp.c                      | 12 +++-
 drivers/char/agp/sworks-agp.c                      |  3 +-
 drivers/firmware/edd.c                             |  8 +--
 drivers/firmware/iscsi_ibft.c                      |  5 +-
 drivers/gpu/drm/gma500/cdv_device.c                | 16 +++--
 drivers/gpu/drm/gma500/gma_device.c                |  4 +-
 drivers/gpu/drm/gma500/mid_bios.c                  | 12 +++-
 drivers/gpu/drm/gma500/psb_drv.c                   | 10 ++-
 drivers/gpu/drm/gma500/psb_drv.h                   | 18 ++---
 drivers/gpu/drm/i915/i915_drv.c                    |  5 +-
 drivers/gpu/drm/nouveau/dispnv04/arb.c             |  4 +-
 drivers/gpu/drm/nouveau/dispnv04/hw.c              | 10 ++-
 drivers/gpu/drm/nouveau/nouveau_drm.c              |  3 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c   | 10 ++-
 drivers/ide/sl82c105.c                             |  5 +-
 drivers/iommu/amd_iommu.c                          |  3 +-
 drivers/iommu/amd_iommu_init.c                     |  9 +--
 drivers/iommu/amd_iommu_v2.c                       |  3 +-
 drivers/macintosh/via-pmu.c                        |  2 +-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c  | 10 ++-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h  |  1 +
 .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c   |  6 +-
 drivers/pci/hotplug/cpqphp_pci.c                   | 18 +++--
 drivers/pci/hotplug/ibmphp_core.c                  |  7 +-
 drivers/pci/quirks.c                               |  3 +-
 drivers/pci/syscall.c                              |  4 +-
 drivers/pci/xen-pcifront.c                         |  3 +-
 drivers/sbus/char/openprom.c                       |  5 +-
 .../media/atomisp/pci/atomisp2/atomisp_v4l2.c      |  2 +-
 .../platform/intel-mid/intel_mid_pcihelpers.c      |  2 +-
 drivers/staging/rts5208/rtsx.c                     | 17 -----
 drivers/staging/rts5208/rtsx.h                     |  2 -
 drivers/video/backlight/apple_bl.c                 |  2 +-
 drivers/video/fbdev/intelfb/intelfbhw.c            |  4 +-
 drivers/video/fbdev/nvidia/nv_hw.c                 | 11 +--
 drivers/video/fbdev/nvidia/nv_setup.c              |  3 +-
 drivers/video/fbdev/riva/fbdev.c                   |  2 +-
 drivers/video/fbdev/riva/nv_driver.c               |  7 +-
 drivers/video/fbdev/riva/riva_hw.c                 | 20 ++++--
 drivers/video/fbdev/riva/riva_hw.h                 |  3 +-
 include/linux/i7300_idle.h                         | 84 ----------------------
 include/linux/pci.h                                |  8 ---
 49 files changed, 181 insertions(+), 204 deletions(-)
 delete mode 100644 include/linux/i7300_idle.h

-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 172+ messages in thread

end of thread, other threads:[~2018-02-19  9:47 UTC | newest]

Thread overview: 172+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-27 16:57 [PATCH V3 00/29] PCI: deprecate pci_get_bus_and_slot() Sinan Kaya
2017-11-27 16:57 ` Sinan Kaya
2017-11-27 16:57 ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 01/29] alpha/PCI: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 02/29] powerpc/PCI: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 03/29] x86/PCI: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-28 13:45   ` Thomas Gleixner
2017-11-28 13:45     ` Thomas Gleixner
2017-11-28 13:45     ` Thomas Gleixner
2017-11-28 13:45     ` Thomas Gleixner
2017-11-27 16:57 ` [PATCH V3 04/29] ata: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 19:50   ` Tejun Heo
2017-11-27 19:50     ` Tejun Heo
2017-11-27 19:50     ` Tejun Heo
2017-11-27 19:50     ` Tejun Heo
2017-11-27 16:57 ` [PATCH V3 05/29] agp: nvidia: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 06/29] edd: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 07/29] ibft: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 08/29] drm/gma500: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 18:49   ` Sinan Kaya
2017-11-27 18:49     ` Sinan Kaya
2017-11-27 18:49     ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 09/29] drm/i915: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 18:50   ` Sinan Kaya
2017-11-27 18:50     ` Sinan Kaya
2017-11-27 18:50     ` Sinan Kaya
2017-12-12 14:04     ` Joonas Lahtinen
2017-12-12 14:04       ` Joonas Lahtinen
2017-12-12 14:04       ` Joonas Lahtinen
2017-12-12 14:04       ` Joonas Lahtinen
2017-12-13  0:07       ` Sinan Kaya
2017-12-13  0:07         ` Sinan Kaya
2017-12-13  0:07         ` Sinan Kaya
2017-12-13  8:01         ` Joonas Lahtinen
2017-12-13  8:01           ` Joonas Lahtinen
2017-12-13  8:01           ` Joonas Lahtinen
2017-12-13  8:01           ` Joonas Lahtinen
2017-11-28 15:30   ` [Intel-gfx] " Ville Syrjälä
2017-11-28 15:30     ` Ville Syrjälä
2017-11-28 15:30     ` Ville Syrjälä
2017-11-28 15:30     ` Ville Syrjälä
2017-11-28 16:29     ` Sinan Kaya
2017-11-28 16:29       ` Sinan Kaya
2017-11-28 16:29       ` Sinan Kaya
2017-12-03 19:29       ` Sinan Kaya
2017-12-03 19:29         ` Sinan Kaya
2017-12-03 19:29         ` Sinan Kaya
2018-02-16 14:54   ` Bjorn Helgaas
2018-02-16 14:54     ` Bjorn Helgaas
2018-02-16 14:54     ` Bjorn Helgaas
2018-02-19  9:34     ` Jani Nikula
2018-02-19  9:34       ` Jani Nikula
2018-02-19  9:34       ` Jani Nikula
2018-02-19  9:47       ` Joonas Lahtinen
2018-02-19  9:47         ` Joonas Lahtinen
2018-02-19  9:47         ` Joonas Lahtinen
2018-02-19  9:47         ` Joonas Lahtinen
2017-11-27 16:57 ` [PATCH V3 10/29] drm/nouveau: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
     [not found]   ` <1511801886-6753-11-git-send-email-okaya-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-11-27 18:52     ` Sinan Kaya
2017-11-27 18:52       ` Sinan Kaya
2017-11-27 18:52       ` Sinan Kaya
2017-11-27 18:52       ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 11/29] Drivers: ide: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 12/29] iommu/amd: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 13/29] powerpc/powermac: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 14/29] bnx2x: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 15/29] pch_gbe: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 16/29] PCI: cpqhp: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 17/29] PCI: ibmphp: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 18/29] PCI/quirks: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 19/29] PCI/syscall: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 20/29] xen: " Sinan Kaya
2017-11-27 16:57 ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 21/29] openprom: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57 ` [PATCH V3 22/29] [media] atomisp: " Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-27 16:57   ` Sinan Kaya
2017-11-29  8:36   ` Sakari Ailus
2017-11-29  8:36     ` Sakari Ailus
2017-11-29  8:36     ` Sakari Ailus
2017-11-29  8:36     ` Sakari Ailus
2017-11-29  8:36     ` Sakari Ailus
2017-11-27 16:58 ` [PATCH V3 23/29] staging: rts5208: remove rtsx_read_pci_cfg_byte() Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58 ` [PATCH V3 24/29] backlight: deprecate pci_get_bus_and_slot() Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 19:46   ` Jingoo Han
2017-11-27 19:46     ` Jingoo Han
2017-11-27 19:46     ` Jingoo Han
2017-11-27 19:46     ` Jingoo Han
2017-11-27 19:46     ` Jingoo Han
2017-11-28  8:13     ` Lee Jones
2017-11-28  8:13       ` Lee Jones
2017-11-28  8:13       ` Lee Jones
2017-11-28  8:13       ` Lee Jones
2017-11-27 16:58 ` [PATCH V3 25/29] video: fbdev: intelfb: " Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58 ` [PATCH V3 26/29] video: fbdev: nvidia: " Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58 ` [PATCH V3 27/29] video: fbdev: riva: " Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58 ` [PATCH V3 28/29] i7300_idle: remove unused file Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58 ` [PATCH V3 29/29] PCI: remove pci_get_bus_and_slot() function Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-27 16:58   ` Sinan Kaya
2017-11-29 17:09 ` [PATCH V3 00/29] PCI: deprecate pci_get_bus_and_slot() Bjorn Helgaas
2017-11-29 17:09   ` Bjorn Helgaas
2017-11-29 17:09   ` Bjorn Helgaas
2017-12-01  2:15   ` Sinan Kaya
2017-12-01  2:15     ` Sinan Kaya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.