Re: [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller

From
sashiko-bot@kernel.org
Date
2026-11-17 13:27:52
Also in
linux-devicetree
Reply to
yy-Local-LLM via B4 Relay, 2026-11-17
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] irqchip:at550: non-human handle in Signed-off-by trailer
- [Medium] irqchip:at550: missing IRQ_LEVEL flag in at550_irq_map()
--

commit d5dea66e73a21d9dc175a050a6d6978545bc229c
Author: yy-Local-LLM [off-list ref]
irqchip: add the SiRF AT550 interrupt controller

Register the root controller through IRQCHIP_DECLARE and a linear
domain. Validate the chip ID before writes, mask both banks during setup
and route sources to IRQ. Keep dispatch bounded and leave the DSP mask
registers alone. The register operations derive from the 6.12.60
YPL514si bring-up. The device owner has now booted the 7.4-rc3 candidate
through JWM on this upstream initialization path.

Signed-off-by: yy-Local-LLM <redacted>
[Severity: High]
The Author header and Signed-off-by trailer use the handle "yy-Local-LLM"
rather than a known real full human name, which does not comply with the
Developer's Certificate of Origin in
Documentation/process/submitting-patches.rst.
quoted hunk ↗ jump to hunk
diff --git a/drivers/irqchip/irq-at550.c b/drivers/irqchip/irq-at550.c
new file mode 100644
index 0000000000000..33eb18cd1e9ec
--- /dev/null
+++ b/drivers/irqchip/irq-at550.c
[ ... ]
quoted hunk ↗ jump to hunk
+static int at550_irq_map(struct irq_domain *domain, unsigned int irq,
+			irq_hw_number_t hwirq)
+{
+	if (hwirq >= AT550_IRQ_COUNT)
+		return -EINVAL;
+	irq_set_chip_and_handler(irq, &at550_chip, handle_level_irq);
+	irq_set_noprobe(irq);
+	return 0;
+}
+
+static const struct irq_domain_ops at550_domain_ops = {
+	.map = at550_irq_map,
+	.xlate = irq_domain_xlate_onecell,
+};
[Severity: Medium]
Should at550_irq_map() also call irq_set_status_flags(irq, IRQ_LEVEL)?

Because at550_domain_ops uses irq_domain_xlate_onecell() and at550_chip has
no .irq_set_type callback, IRQ_LEVEL is never set on the descriptor.  If a
level interrupt fires while lazily disabled via disable_irq(),
handle_level_irq() masks the source and sets IRQS_PENDING, and a later
enable_irq() -> check_irq_resend() sees irq_settings_is_level(desc) as
false and schedules a software resend on top of the unmasked hardware line,
running the handler twice and reporting the interrupt as edge-triggered in
procfs and sysfs.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com?part=2
Thread (18 messages) 18 messages, 6 authors, last reply 10d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help