From: "tip-bot2 for Markus Stockhausen" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Markus Stockhausen <markus.stockhausen@gmx.de>,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: irq/drivers] irqchip/irq-realtek-rtl: Add mask for interrupt handling
Date: Mon, 29 Jun 2026 15:19:50 -0000 [thread overview]
Message-ID: <178274639045.3843924.17878865811747713869.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260605211646.2101652-5-markus.stockhausen@gmx.de>
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 2a3fa7f31f43580edcba5ee9f97473801aa3deec
Gitweb: https://git.kernel.org/tip/2a3fa7f31f43580edcba5ee9f97473801aa3deec
Author: Markus Stockhausen <markus.stockhausen@gmx.de>
AuthorDate: Fri, 05 Jun 2026 23:16:43 +02:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 29 Jun 2026 17:19:06 +02:00
irqchip/irq-realtek-rtl: Add mask for interrupt handling
When using multiple domains for the Interrupt controller, each one
must know which hardware interrupts it serves. Add a mask that is
filled during setup and apply it during interrupt handling.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260605211646.2101652-5-markus.stockhausen@gmx.de
---
drivers/irqchip/irq-realtek-rtl.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-realtek-rtl.c b/drivers/irqchip/irq-realtek-rtl.c
index 547f21d..9f792d4 100644
--- a/drivers/irqchip/irq-realtek-rtl.c
+++ b/drivers/irqchip/irq-realtek-rtl.c
@@ -27,6 +27,7 @@
struct realtek_ictl_output {
struct irq_domain *domain;
+ u32 mask;
};
static DEFINE_RAW_SPINLOCK(irq_lock);
@@ -109,15 +110,17 @@ static struct irq_chip realtek_ictl_irq = {
.irq_set_affinity = realtek_ictl_irq_affinity,
};
-static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
+static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw_irq)
{
+ struct realtek_ictl_output *output = d->host_data;
unsigned int cpu;
irq_set_chip_and_handler(irq, &realtek_ictl_irq, handle_level_irq);
guard(raw_spinlock_irqsave)(&irq_lock);
+ output->mask |= BIT(hw_irq);
for_each_present_cpu(cpu)
- write_irr(cpu, hw, 1);
+ write_irr(cpu, hw_irq, 1);
return 0;
}
@@ -136,7 +139,7 @@ static void realtek_irq_dispatch(struct irq_desc *desc)
unsigned int hw_irq;
chained_irq_enter(chip, desc);
- pending = readl(REG(cpu, RTL_ICTL_GIMR)) & readl(REG(cpu, RTL_ICTL_GISR));
+ pending = readl(REG(cpu, RTL_ICTL_GIMR)) & readl(REG(cpu, RTL_ICTL_GISR)) & output->mask;
if (unlikely(!pending)) {
spurious_interrupt();
next prev parent reply other threads:[~2026-06-29 15:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 21:16 [PATCH 0/7] irqchip/irq-realtek-rtl: Add multi parent support Markus Stockhausen
2026-06-05 21:16 ` [PATCH 1/7] dt-bindings: interrupt-controller: realtek,rtl-intc: Allow 2 interrupt cells Markus Stockhausen
2026-06-10 19:59 ` Rob Herring (Arm)
2026-06-29 15:19 ` [tip: irq/drivers] " tip-bot2 for Markus Stockhausen
2026-06-05 21:16 ` [PATCH 2/7] irqchip/irq-realtek-rtl: Use helper for parent setup Markus Stockhausen
2026-06-29 15:19 ` [tip: irq/drivers] irqchip/irq-realtek-rtl: Split out parent setup code tip-bot2 for Markus Stockhausen
2026-06-05 21:16 ` [PATCH 3/7] irqchip/irq-realtek-rtl: Add interrupt data structure Markus Stockhausen
2026-06-29 15:19 ` [tip: irq/drivers] " tip-bot2 for Markus Stockhausen
2026-06-05 21:16 ` [PATCH 4/7] irqchip/irq-realtek-rtl: Add mask for interrupt handling Markus Stockhausen
2026-06-29 15:12 ` Thomas Gleixner
2026-06-29 15:43 ` AW: " Markus Stockhausen
2026-06-29 15:19 ` tip-bot2 for Markus Stockhausen [this message]
2026-06-05 21:16 ` [PATCH 5/7] irqchip/irq-realtek-rtl: Add a select function Markus Stockhausen
2026-06-29 15:19 ` [tip: irq/drivers] " tip-bot2 for Markus Stockhausen
2026-06-05 21:16 ` [PATCH 6/7] irqchip/irq-realtek-rtl: Allow shuffled interrupt order Markus Stockhausen
2026-06-29 15:19 ` [tip: irq/drivers] " tip-bot2 for Markus Stockhausen
2026-06-05 21:16 ` [PATCH 7/7] irqchip/irq-realtek-rtl: Activate multiple parents Markus Stockhausen
2026-06-29 15:19 ` [tip: irq/drivers] " tip-bot2 for Markus Stockhausen
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=178274639045.3843924.17878865811747713869.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=markus.stockhausen@gmx.de \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®