From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 645F7606A322 for ; Sat, 5 Dec 2026 00:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=QoXU44uT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=W+p66Gsef59ouNqA3AhuN2VpGa2nhHXELCWakuRNI6c=; b=QoXU44uTeavJmE uz1bPa83FF45pzZxz1TF2ncqpQh954fkv1pV7beX2i5GTATTTHbZlvBOF03jejY/7O3chQAiQJ5NI k2pT+v7s4u+MqgfwRdC67EvQnlMtsxWRAQZ6zQ4AMr5JV2U6bReakpE6XAgr0nM14Rkh41JNwFSX1 f4KJYK4jLbzBqC2Hx+/GQcap95EkJHIA7rFJz17UXH+ak7dhBZa454Is6tJa/qbhLYr3OYIvM+sEC hYbTR43nMZ0LVoJ9D7iT3LRi9lgQ333on2+4c3GTc/E0wZbFPpF9xABmVaM32fG5I0JpGlB4Aj5lz DCrljusHIMpBZ9gJDPWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZe2Y-00000001pY2-3EXT; Sat, 05 Dec 2026 00:54:14 +0000 Received: from mail.aspeedtech.com ([211.20.114.72] helo=twmbx01.aspeedtech.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZe2V-00000001pLe-3Ft2 for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 00:54:13 +0000 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.39; Sat, 5 Dec 2026 08:53:35 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.39 via Frontend Transport; Sat, 5 Dec 2026 08:53:35 +0800 From: Ryan Chen Date: Sat, 5 Dec 2026 08:53:40 +0800 Subject: [PATCH v8 08/10] EDAC/aspeed: Disable interrupts before requesting the interrupt line X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20261205-edac-v8-8-8a27981a6053@aspeedtech.com> References: <20261205-edac-v8-0-8a27981a6053@aspeedtech.com> In-Reply-To: <20261205-edac-v8-0-8a27981a6053@aspeedtech.com> To: Stefan Schaeckeler , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Borislav Petkov , Tony Luck , Billy Tsai CC: , , , , , Ryan Chen X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796432014; l=859; i=ryan_chen@aspeedtech.com; s=20251126; h=from:subject:message-id; bh=F4hf+bW2o9YBy4u7x25QeTEVZxMZMN55SPbsSRy89Ps=; b=vOuN4lKmXWabiPW3Uh6YYAO2q8nPXqVPNIwyJ5lA97Eq39hHnMthkQ/OspJms8Yolr4eO45Hn NHupO7TG321Ao/4D9JzQsqzixVi+9GXFOAtg9snDEkxzu/X9zpLQHnS X-Developer-Key: i=ryan_chen@aspeedtech.com; a=ed25519; pk=Xe73xY6tcnkuRjjbVAB/oU30KdB3FvG4nuJuILj7ZVc= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_165411_873835_D25884C2 X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 --- 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