Skip to content

PCI: unify slot and bus reset calls

Sinan Kaya kvm linux-arm-kernel linux-arm-msm linux-pci linux-rdma lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 3 repliesIn review
  2. v47 patches 5 repliesSuperseded
  3. v25 patches 0 repliesSuperseded

Changes in v5 from the cover letter

* return code factoring per Andy.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6PCI: Handle error return from pci_reset_bridge_secondary_bus()drivers/pci/hotplug/pciehp_hpc.c drivers/pci/pci.c drivers/pci/pcie/aer.c +1 more+16 -120 replies
2/6IB/hfi1: Use pci_try_reset_bus() for initiating pci secondary bus resetdrivers/infiniband/hw/hfi1/pcie.c+1 -30 replies
3/6PCI: Hide pci_reset_bridge_secondary_bus() from driversdrivers/pci/hotplug/pciehp_hpc.c drivers/pci/pci.c drivers/pci/pci.h +3 more+9 -100 replies
4/6PCI: Unify try slot and bus reset APIdrivers/infiniband/hw/hfi1/pcie.c drivers/pci/pci.c drivers/vfio/pci/vfio_pci.c +1 more+20 -120 replies
5/6PCI: Deprecate pci_reset_bus() and pci_reset_slot() functionsdrivers/pci/pci.c include/linux/pci.h+2 -553 replies
6/6PCI: Rename pci_try_reset_bus() to pci_reset_bus()drivers/infiniband/hw/hfi1/pcie.c drivers/pci/pci.c drivers/vfio/pci/vfio_pci.c +1 more+12 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH V5 0/6] PCI: unify slot and bus reset calls

pci_reset_slot() and pci_reset_bus() functions require user to query if a device is behind a hotplug slot. External users are not following this requirement.

Hide the implemetnation into PCI core and check hotplug association on behalf of the user internally.

Changes from v4:
* return code factoring per Andy.

Sinan Kaya (6):
PCI: Handle error return from pci_reset_bridge_secondary_bus() IB/hfi1: Use pci_try_reset_bus() for initiating pci secondary bus
reset
PCI: Hide pci_reset_bridge_secondary_bus() from drivers
PCI: Unify try slot and bus reset API
PCI: Deprecate pci_reset_bus() and pci_reset_slot() functions
PCI: Rename pci_try_reset_bus() to pci_reset_bus()

 drivers/infiniband/hw/hfi1/pcie.c |  4 +-
 drivers/pci/hotplug/pciehp_hpc.c  |  5 ++-
 drivers/pci/pci.c                 | 91 +++++++++++----------------------------
 drivers/pci/pci.h                 |  1 +
 drivers/pci/pcie/aer.c            |  5 ++-
 drivers/pci/pcie/err.c            |  6 ++-
 drivers/vfio/pci/vfio_pci.c       |  6 +--
 include/linux/pci.h               |  6 +--
 8 files changed, 40 insertions(+), 84 deletions(-)
Signature · 1 line
2.7.4