Skip to content

Clarify pci_free_irq_vectors() usage constraints

Shawn Lin linux-doc linux-pci 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- rework the commit message and documentation

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Documentation: PCI: Clarify pci_free_irq_vectors() usage for managed devicesDocumentation/PCI/msi-howto.rst+5 -20 replies
2/3PCI/MSI: Add warning to pci_free_irq_vectors() documentationdrivers/pci/msi/api.c+5 -00 replies
3/3PCI/MSI: Add TODO comment about legacy pcim_enable_device() side-effectdrivers/pci/msi/msi.c+10 -00 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/3] Clarify pci_free_irq_vectors() usage constraints

pcim_enable_device() automatically manages IRQ vectors, which can cause double-free issues if drivers manually call pci_free_irq_vectors().

This series adds documentation and warnings to prevent this:
1. msi-howto.rst guidance
2. kernel-doc warning
3. TODO comment for future cleanup

Changes in v2:
- rework the commit message and documentation

Shawn Lin (3):
Documentation: PCI: Clarify pci_free_irq_vectors() usage for managed
devices
PCI/MSI: Add warning to pci_free_irq_vectors() documentation PCI/MSI: Add TODO comment about legacy pcim_enable_device()
side-effect

 Documentation/PCI/msi-howto.rst |  7 +++++--
 drivers/pci/msi/api.c           |  5 +++++
 drivers/pci/msi/msi.c           | 10 ++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4