[PATCH v7 08/10] EDAC/aspeed: Disable interrupts before requesting the interrupt line
From: Ryan Chen
Date: Mon Nov 30 2026 - 02:25:13 EST
Prepare for the AST2700, whose interrupt line also carries memory
controller events the driver doesn't handle. They may already be
enabled when the driver loads, so turn them off before the handler is
installed.
Signed-off-by: Ryan Chen <ryan_chen@xxxxxxxxxxxxxx>
---
drivers/edac/aspeed_edac.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c
index f397e8bdbda5..36599ddf589a 100644
--- a/drivers/edac/aspeed_edac.c
+++ b/drivers/edac/aspeed_edac.c
@@ -211,6 +211,9 @@ static int config_irq(void *ctx, struct platform_device *pdev)
if (irq < 0)
return irq;
+ /* keep interrupts off until the handler is in place */
+ priv->chip->set_irq(priv, false);
+
rc = request_irq(irq, priv->chip->isr, IRQF_TRIGGER_HIGH, DRV_NAME,
ctx);
if (rc)
--
2.34.1