From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.20.114.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796023502; b=5brFMx/c2U4zw5Hgwv9r5jr3npCHnLei3T+Pwc1CgCDY4abPN9BBFH3GgFpksR6l4VVf M63iTQgxV/4uA0Aq/OqrGzPn3ec7nDFen0bNr6wtKm87rFPJXK3kGW0JDm+2fOFd7D9ds t/oxdGpCDPQ2mQf+JZ9V7UohnqjjW1a+A/yEnEqT5R2T7JILHoka7TKaNgzqNyQkA62Ou nhnKoxB8suHSnkOxsYPJUUG2jS4q0amGw6OJoewTmnjzw+QLOU3AaruJQmOoB2k+oVnZ1 ObrlRvWUgmyLtDQoQ8Au1xKzQPGJeuNKSANM662foXAJ/lHCs+ImhDCorKvjzZgmTlQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796023502; h=DMARC-Filter:Received:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-ID:References: In-Reply-To:To:CC:X-Mailer:X-Developer-Signature:X-Developer-Key; bh=RpmsYS8nTmlPANBwJfen53ziCKLGt1PhmajVag+2eKk=; b=kKEIdKc5dWtErmlrnl6jQ74Zi/76nR10DZ2rsyhcrvX2sZVnRYgDZSw1YeU4M3Is8+sY Wr9cxcx5qbJUWSCjbeDtoMd1DaKIGZ2HW7Vsg+X6CRg3ezu2BzjgIubDIV21Z26SnINsN GcXt5d1VZtl3ArO+7XJga7glkLDqa/DlytO3EzzYFXa1EWUFEP5zJZ1kdRwYbNnIua7w4 FrVGISiRMNZbK3VuxpjsqoO594aK2bMq4xovAA6lnTxwCf2zHmyMeQ3sg1uSCdy3jcutA ylLfjFpAdS7Iw0hjJjLz+apA5icK9vmreVS2sLAERPspPnjNgQLZUnYVPdchJjngzOA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.remote-ip=211.20.114.72 Received: from twmbx01.aspeedtech.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 886BF60A260A; Mon, 30 Nov 2026 07:25:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 886BF60A260A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com 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-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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= 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