public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Clarify pci_free_irq_vectors() usage constraints
@ 2026-02-11  8:24 Shawn Lin
  2026-02-11  8:24 ` [PATCH v2 1/3] Documentation: PCI: Clarify pci_free_irq_vectors() usage for managed devices Shawn Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shawn Lin @ 2026-02-11  8:24 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, linux-doc, Philipp Stanner, Shawn Lin

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(-)

-- 
2.7.4


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

end of thread, other threads:[~2026-02-12 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  8:24 [PATCH v2 0/3] Clarify pci_free_irq_vectors() usage constraints Shawn Lin
2026-02-11  8:24 ` [PATCH v2 1/3] Documentation: PCI: Clarify pci_free_irq_vectors() usage for managed devices Shawn Lin
2026-02-11  8:24 ` [PATCH v2 2/3] PCI/MSI: Add warning to pci_free_irq_vectors() documentation Shawn Lin
2026-02-11  8:24 ` [PATCH v2 3/3] PCI/MSI: Add TODO comment about legacy pcim_enable_device() side-effect Shawn Lin
2026-02-12 21:28 ` [PATCH v2 0/3] Clarify pci_free_irq_vectors() usage constraints Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox