From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFC5A49D5A5; Thu, 17 Sep 2026 17:57:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667851; cv=none; b=d6fK9Let8QZF3vuVHz494X71i429txHzG+hYSZHAoLbKm/zetZVqyVFbH4AM4ZGWDefdcMvgnc88DdEiRzqh/5eZKGOmkcMPcWezX0x2OKWzjp9FQu1PJPxxpSMvnM/e4NK/vebXADhvrjgqUoovqfxt0VX3aKs6WrAK7Sl4NSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667851; c=relaxed/simple; bh=VVbEU2+wYgG+ruNsjDBbR/ZZxiF2qO2JFY8lU6zMSWU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RBaQsIL1JbPZekWoXgfQc6VOb1BBQLk0rrWDbYQedHQbzNcWqAUT4HHbSiSJu4TcNxtvm79EGXX695KVK4uUZEtoasXv4ksfucn3ND41O1uYGPgi+CzOzoxbVNgIdF2SyKiORRhdpmUdLXEJqN2fZS0w0UNvzt1OYCJ/InIWeco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qDl6uB6W; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qDl6uB6W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EADF61F000FF; Thu, 17 Sep 2026 17:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789667849; bh=5pmTVYWQrDaJcFJIigzmi9QdLpE/OXWL26ZZjgeXc5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qDl6uB6WLZ5xxtle7XodVSU5at6US0L45TROgDqq/Xi9ngknzQCtlz5pW5VNqS2gi v3aqBp0gxth4QmyNySeLZB+IEdSbs70k0kRYhp3EAHAK36ZqqO4g5arl0BeImVN1zk /NpC8ipyDlBYHuQbaE6LoQVa5PR0zkF5Ael5U3AY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rosen Penev , Corey Minyard , Sasha Levin Subject: [PATCH 6.12 0230/1102] ipmi: si: Use platform_get_irq_optional() to retrieve interrupt Date: Thu, 17 Sep 2026 16:02:53 +0100 Message-ID: <20260917151545.359070142@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151539.408551884@linuxfoundation.org> References: <20260917151539.408551884@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rosen Penev [ Upstream commit 39851b7e580a65bee732e5364f0efb974b242370 ] Use platform_get_irq_optional() to retrieve the interrupt resource instead of directly parsing and mapping the OF node via irq_of_parse_and_map(). This is the standard pattern for platform devices. irq_of_parse_and_map() requires ire_dispose_mapping(), which is missing. Assisted-by: Antigravity:Gemini-3.5-Flash Signed-off-by: Rosen Penev Message-ID: <20260603192511.6869-1-rosenp@gmail.com> [Handle a negative return from platform_get_irq_optional() to mean no interrupt is assigned.] Signed-off-by: Corey Minyard Signed-off-by: Sasha Levin --- drivers/char/ipmi/ipmi_si_platform.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/char/ipmi/ipmi_si_platform.c b/drivers/char/ipmi/ipmi_si_platform.c index 96ba85648120d..7b162f6d799af 100644 --- a/drivers/char/ipmi/ipmi_si_platform.c +++ b/drivers/char/ipmi/ipmi_si_platform.c @@ -275,7 +275,10 @@ static int of_ipmi_probe(struct platform_device *pdev) io.regspacing = regspacing ? be32_to_cpup(regspacing) : DEFAULT_REGSPACING; io.regshift = regshift ? be32_to_cpup(regshift) : 0; - io.irq = irq_of_parse_and_map(pdev->dev.of_node, 0); + io.irq = platform_get_irq_optional(pdev, 0); + if (io.irq < 0) + io.irq = 0; + io.dev = &pdev->dev; dev_dbg(&pdev->dev, "addr 0x%lx regsize %d spacing %d irq %d\n", -- 2.53.0