public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes
@ 2026-02-17  6:38 Koichiro Den
  2026-02-17  6:38 ` [PATCH v2 1/3] PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind Koichiro Den
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Koichiro Den @ 2026-02-17  6:38 UTC (permalink / raw)
  To: mani, kwilczynski, kishon, bhelgaas, jdmason, dave.jiang, allenbh,
	cassel, Frank.Li
  Cc: linux-pci, linux-kernel, ntb

Hi,

This is a small fix-only series related to the previous (v6)
doorbell-related series:
https://lore.kernel.org/linux-pci/20260209125316.2132589-1-den@valinux.co.jp/

These patches address a few independent fixes in pci-epf-vntb,
pci-epf-test and pci-ep-msi:

  1/3 fixes IRQ unwind in MSI doorbell setup (pci-epf-vntb)
  2/3 avoids free_irq() if doorbell IRQ was not successfully requested
      (pci-epf-test)
  3/3 fixes error unwind and prevent double allocation in
      pci_epf_alloc_doorbell() (pci-ep-msi)

These fixes were originally intended to be included in the next revision
of the main series. However, doing so would have grown the v7 series to
around 15 patches, so I am posting them separately to keep the feature
series manageable.

Kind regards,
Koichiro

---
Changes in v2:
  - Removed a minor refactoring part from [PATCH 1/4], keeping the iterator type
    int, rather than changing it to unsigned int.
  - Dropped [PATCH 2/4] (bounds check). It's a theoretical future-proofing guard
    rather than a fix for today.
  - Dropped the db_irq_requested flag and instead moved free_irq() to the
    appropriate call sites.

v1: https://lore.kernel.org/linux-pci/20260215150914.3392479-1-den@valinux.co.jp/
---

Koichiro Den (3):
  PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind
  PCI: endpoint: pci-epf-test: Don't free doorbell IRQ unless requested
  PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc

 drivers/pci/endpoint/functions/pci-epf-test.c |  8 +++++---
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 12 ++++++------
 drivers/pci/endpoint/pci-ep-msi.c             |  5 +++++
 3 files changed, 16 insertions(+), 9 deletions(-)

-- 
2.51.0


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17  6:38 [PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes Koichiro Den
2026-02-17  6:38 ` [PATCH v2 1/3] PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind Koichiro Den
2026-02-17 11:10   ` Niklas Cassel
2026-02-17 17:04   ` Frank Li
2026-02-17  6:38 ` [PATCH v2 2/3] PCI: endpoint: pci-epf-test: Don't free doorbell IRQ unless requested Koichiro Den
2026-02-17 11:11   ` Niklas Cassel
2026-02-17 17:05   ` Frank Li
2026-02-17  6:38 ` [PATCH v2 3/3] PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc Koichiro Den
2026-02-24 10:21 ` [PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes Manivannan Sadhasivam

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