From: Mahesh Vaidya <mahesh.vaidya@altera.com>
To: joyce.ooi@intel.com, lpieralisi@kernel.org,
kwilczynski@kernel.org, mani@kernel.org, robh@kernel.org,
bhelgaas@google.com, ley.foon.tan@intel.com, dinguyen@kernel.org
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
subhransu.sekhar.prusty@altera.com, preetam.narayan@altera.com,
cheryl.bansal@altera.com, stable@vger.kernel.org,
Mahesh Vaidya <mahesh.vaidya@altera.com>
Subject: [PATCH v2 1/2] PCI: altera: Do not dispose parent IRQ mapping
Date: Thu, 30 Apr 2026 13:43:29 -0700 [thread overview]
Message-ID: <20260430204330.3121003-2-mahesh.vaidya@altera.com> (raw)
In-Reply-To: <20260430204330.3121003-1-mahesh.vaidya@altera.com>
altera_pcie_irq_teardown() calls irq_dispose_mapping() on pcie->irq.
However, pcie->irq is the parent IRQ returned by platform_get_irq(), not
an IRQ mapping created by the Altera INTx irq_domain.
The Altera driver only installs a chained handler on the parent IRQ. It
should detach that handler during teardown, but it should not dispose the
parent IRQ mapping, which belongs to the parent interrupt controller's
irq_domain.
Drop irq_dispose_mapping(pcie->irq) from the teardown path.
Fixes: ec15c4d0d5d2 ("PCI: altera: Allow building as module")
Cc: stable@vger.kernel.org
Reviewed-by: Subhransu S. Prusty <subhransu.sekhar.prusty@altera.com>
Signed-off-by: Mahesh Vaidya <mahesh.vaidya@altera.com>
---
drivers/pci/controller/pcie-altera.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c
index 3dbb7adc421c..3d3519b8d88f 100644
--- a/drivers/pci/controller/pcie-altera.c
+++ b/drivers/pci/controller/pcie-altera.c
@@ -868,7 +868,6 @@ static void altera_pcie_irq_teardown(struct altera_pcie *pcie)
{
irq_set_chained_handler_and_data(pcie->irq, NULL, NULL);
irq_domain_remove(pcie->irq_domain);
- irq_dispose_mapping(pcie->irq);
}
static int altera_pcie_parse_dt(struct altera_pcie *pcie)
--
2.34.1
next prev parent reply other threads:[~2026-04-30 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-30 20:43 [PATCH v2 0/2] PCI: altera: Fix IRQ cleanup on probe failure Mahesh Vaidya
2026-04-30 20:43 ` Mahesh Vaidya [this message]
2026-04-30 20:43 ` [PATCH v2 2/2] PCI: altera: Fix resource leaks " Mahesh Vaidya
2026-09-02 17:56 ` Bjorn Helgaas
2026-09-04 11:11 ` Dinh Nguyen
2026-05-15 17:35 ` [PATCH v2 0/2] PCI: altera: Fix IRQ cleanup " Manivannan Sadhasivam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260430204330.3121003-2-mahesh.vaidya@altera.com \
--to=mahesh.vaidya@altera.com \
--cc=bhelgaas@google.com \
--cc=cheryl.bansal@altera.com \
--cc=dinguyen@kernel.org \
--cc=joyce.ooi@intel.com \
--cc=kwilczynski@kernel.org \
--cc=ley.foon.tan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=preetam.narayan@altera.com \
--cc=robh@kernel.org \
--cc=stable@vger.kernel.org \
--cc=subhransu.sekhar.prusty@altera.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).