From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5459F606A31C for ; Mon, 30 Nov 2026 07:25:17 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jdFsk4kz9z2yMK; Mon, 30 Nov 2026 18:25:14 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796023514; cv=none; b=mjCXdLoE+ifSMGAVhHx5ybFymSNeN/xpUwq1T8mvpgMINtcx/iE0puLGLxNQ5ppLLu9wETcARqIKwW9nb+CXvxysbZAibcpI2aeTRnojUQZoMlkawWmtpP0wLrnEGel10TrywkCmmXDI50ksDvjFcyTSUOiErvdLyWIomlUscdB+6pytv1F6sFt/j44iy2Kd04liuUNu3qzYR+508/knvu0hneVcQq+NCYxOxrWJXWuZx1fozzxuNygZlz7elD2l7+2Ygf6coalc+ltfrhJL/wGeemqAtr2br0is2m1npGQ33qBpG1IoTcoil/rTe+6aQCP2dYVL4fFkhS9A500PvQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796023514; c=relaxed/relaxed; bh=RpmsYS8nTmlPANBwJfen53ziCKLGt1PhmajVag+2eKk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=G/vPfo6hXjAZWYk44UoRRLRSr5t+ACqUSqx7GwEeDXYFCxQFz7YGPN8aGIPEwToNL4E4Pm+Iu/a3/Iu9C0md4l2egdfDxuUvMgxxqpSCI7aTvCcevDrW6luRrGwQ28nh2Vu9fx5J9Vgu2ivhm/FmDOGkxBTmzqN/T0LiTLXsgGB/2Fvx/Tbm/ZmVBEdjxq4wyhjKmva9j7w0QQnovgXUwChmhwXgjNGaKn2VGvZZhW/7KRkmxAAgHZKk6/YaYslUrGhffWAlrBp3VHrAw43+Q5bgYAhHYNF4Qy6S3mQAgGld/fq+oBFdiQ95PwwXVlS9nPbqEBtiP4e1wJxbhxsPuA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass (client-ip=211.20.114.72; helo=twmbx01.aspeedtech.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) smtp.mailfrom=aspeedtech.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aspeedtech.com (client-ip=211.20.114.72; helo=twmbx01.aspeedtech.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) Received: from twmbx01.aspeedtech.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jdFsj6clYz2xNT for ; Mon, 30 Nov 2026 18:25:13 +1100 (AEDT) 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; Mon, 30 Nov 2026 15:24:47 +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; Mon, 30 Nov 2026 15:24:47 +0800 From: Ryan Chen Date: Mon, 30 Nov 2026 15:24:35 +0800 Subject: [PATCH v7 08/10] EDAC/aspeed: Disable interrupts before requesting the interrupt line X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20261130-edac-v7-8-3aaf6d243f07@aspeedtech.com> References: <20261130-edac-v7-0-3aaf6d243f07@aspeedtech.com> In-Reply-To: <20261130-edac-v7-0-3aaf6d243f07@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=1796023486; l=855; i=ryan_chen@aspeedtech.com; s=20251126; h=from:subject:message-id; bh=VX7lNd2KfItZ47URYHdAGUvxAtnxc++VyEkrTI7Sh/w=; b=aQ6oqMxvtWIfPvTsXSmYaGV3ujFn+Sk1HdDdppNSuyherHH8O8AvxMJTJmK5rvuQL0eZ/91Jy 6lPh+/PXEtLBfNEsmUQU/RKUnLj+SJUObyP91lHxpdn1DonbxOkNLEk X-Developer-Key: i=ryan_chen@aspeedtech.com; a=ed25519; pk=Xe73xY6tcnkuRjjbVAB/oU30KdB3FvG4nuJuILj7ZVc= X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 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