Introduce PCIe Device Serial Number capability support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest7 patches 5 repliesIn review
- v57 patches 6 repliesSuperseded
- v13 patches 5 repliesSuperseded
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | PCI: rework pci_find_next_ext_capability()drivers/ include/ | +10 | 0 replies | |
| 2/7 | PCI: introduce pci_bus_find_ext_capability()drivers/ include/ | +33 | 0 replies | |
| 3/7 | PCI: Add support for Device Serial Number capabilitydrivers/ drivers/ drivers/ +1 more | +34 | 0 replies | |
| 4/7 | PCI: Introduce pci_serial_number_changed()drivers/ include/ | +30 | 2 replies | |
| 5/7 | PCI: Add pci_dummy_ops to isolate pci device temporarilydrivers/ include/ | +66 | 2 replies | |
| 6/7 | PCI: Check pci device serial number when scan devicedrivers/ | +12 | 0 replies | |
| 7/7 | PCI: pciehp: Don't enable/disable slot on resume unless status changeddrivers/ | +7 | 0 replies |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Gu Zheng | Paul Bolle |
|---|---|---|
| 1/7 | ||
| 2/7 | ||
| 3/7 | R-b | |
| 4/7 | ||
| 5/7 | ||
| 6/7 | ||
| 7/7 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH part1 v6 0/7] Introduce PCIe Device Serial Number capability support
v5->v6: Add is_frozen flag to protect pci bus from double frozen.
This series is based on Bjorn's pci-next branch.
Currently, more and more PCIe devices support PCIe DSN(Device Serial Number) capability, we can use this cap to identify device. In some platform, when we hotplug PCIe device, no interrupts will be received in system. So we can not identify the device whether is changed during suspend. PCIe DSN can help to identify this.
Legacy PCI device can achieve it by PCI Vital Product Data capability. We can use its SN keyword to report the unique number.
But in my platform, PCI devices which support VPD SN cap report the meaningless same string "0123456789".
Rework PCI VPD code to support device identification is not an easy work. Plan to do it in part2.
Yijing Wang (7):
PCI: rework pci_find_next_ext_capability()
PCI: introduce pci_bus_find_ext_capability()
PCI: Add support for Device Serial Number capability
PCI: Introduce pci_serial_number_changed()
PCI: Add pci_dummy_ops to isolate pci device temporarily
PCI: Check pci device serial number when scan device
PCI: pciehp: Don't enable/disable slot on resume unless status
changed
drivers/pci/hotplug/pciehp_core.c | 10 ++- drivers/pci/pci.c | 169 +++++++++++++++++++++++++++++++++++-- drivers/pci/pci.h | 2 +- drivers/pci/probe.c | 15 +++- include/linux/pci.h | 10 ++- 5 files changed, 192 insertions(+), 14 deletions(-)