[PATCH v8 08/10] EDAC/aspeed: Disable interrupts before requesting the interrupt line
From: Ryan Chen
Date: Fri Dec 04 2026 - 19:54:14 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 5b741e4a9587..4435820b2091 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->mc->set_irq(priv, false);
+
rc = request_irq(irq, priv->mc->irq_handler, IRQF_TRIGGER_HIGH,
DRV_NAME, ctx);
if (rc)
--
2.34.1