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=1796432029; b=djFBx+zVr48rC6tRYvJoEu/KZuXkfuy4SN9EKJXVAbBGA/P1C+/CVJd4yOt3nFDWyu5a EzmQO2Uc6wRxFS1W558eK2+58Tf3gau+OBdXBBniveNTigo+b3plHEna8oVOKMWK8ajGN Q9GqbMbhrshs+6H5rp6jxQ9Bqz5y9rkQbMsTpPT45R/MD4SGFfwRkpRAISZQCVc/IT8sF aMez3jvTKmjTuTrNJbYIoWWuKU68cHC+Y8UrtLKkv9CtcojkYpoY+gp0GGlm/pvLsgsLK MmOmA+Its81zdNeBkurOFrM0RFxK2qYN6Es/M2PIgw6oDXEqreq/3tVVJgLNPYvqSeg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796432029; 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=W+p66Gsef59ouNqA3AhuN2VpGa2nhHXELCWakuRNI6c=; b=W34zK4fG0PSd12ZHQ1uGzjX+AGqJZ6MZ1DMVXsmjO7IEtGHykcLrjSqhEiF3eXjJhu7Z JHiFWkaIfrjsHqXgEHaEOd/s2XZ9ZS5XcU/V9S93+ATeOvO3pLReX93oxai3bG/+ifTvz m1tnyUqCPPOW4AxtK/f+V+V9gSnbT14/mAbl0txeaUMN4f/1k9Mct4gSFxV30kolwMYGp gJxCBfn+A2FpeDqfJP6yek6TxWDSCz+3s/3vIGt4mP1NceUiyKEz8u2GybU8+lf+tj0cC fVhT2z6/uL4nV4fEQMGWYo1axK1fj+xdczY03etttluwuiYfuT/Be1Qfe3A5ZEe0ygg== 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 C36E060A261D; Sat, 5 Dec 2026 00:53:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C36E060A261D 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; 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-Mailing-List: devicetree@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: <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= 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