Skip to content

PCI: Manage hotplug attributes through group and make slot attributes const

Thomas Weißschuh linux-pci lkml 2 versions – New

Get series with b4
b4 am 20260519-sysfs-const-pci-hotplug-v2-0-16e90346a522@weissschuh.net change-id 20260513-sysfs-const-pci-hotplug-48b62047984e

Versions newest first

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add a cover letter.
- Add a note about zpci_slot_attr_uid.
- Link to v1: https://patch.msgid.link/20260514-sysfs-const-pci-hotplug-v1-0-3b0b6c6f7481@weissschuh.net

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: hotplug: Manage hotplug slot attributes as groupdrivers/pci/hotplug/pci_hotplug_core.c+43 -710 replies
2/2PCI: Constify slot attributesdrivers/pci/hotplug/pci_hotplug_core.c drivers/pci/pci.h drivers/pci/slot.c+18 -170 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] PCI: Manage hotplug attributes through group and make slot attributes const

Simplify the lifecycle management of the PCI hotplug attributes with a 'struct attribute_group' and constify instances of
'struct pci_slot_attribute'.

'struct pci_slot_attribute zpci_slot_attr_uid' is not constified yet, as it will be constified together with the rest of the zpci subsystem.

---
Changes in v2:
- Add a cover letter.
- Add a note about zpci_slot_attr_uid.
- Link to v1: https://patch.msgid.link/20260514-sysfs-const-pci-hotplug-v1-0-3b0b6c6f7481@weissschuh.net

---
Thomas Weißschuh (2):
PCI: hotplug: Manage hotplug slot attributes as group
PCI: Constify slot attributes

 drivers/pci/hotplug/pci_hotplug_core.c | 125 +++++++++++++--------------------
 drivers/pci/pci.h                      |   2 +-
 drivers/pci/slot.c                     |  14 ++--
 3 files changed, 57 insertions(+), 84 deletions(-)

---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260513-sysfs-const-pci-hotplug-48b62047984e

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>