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 29CC2463B8B; Wed, 30 Sep 2026 16:07:16 +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=1790784441; cv=none; b=O30eAYcBJGAxKR6lsQTa49a1pFhnSdVljNFPf7JMREHKzgx7D+KD3pv2g4QhoOrWpT2WirmhhquvHuhPIvJdEBgKgz7b6+p10njQ/QnsYqRRCIXh/wlmREyiNb2GEXjtJI1ztOgJvLtnTuPsiLTlPZZsOynLe2QijaXRQvxfbyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784441; c=relaxed/simple; bh=pLMioL6J3U6N0Nt5YWGPnxxQfJ2hpkAXqQ5nsaMdzjo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h24lWn3opoZNcZJNHfrtyWDLNIXd1iyIIm2hSW2AcQ/24w0zwR11Dha9GHc1htPbr4KYi3hafrTnVP3lL/UgUzoKZVnW2sf7q2GIbVNvAePUULUl833IqAU0MSX1negxUAkAxqLB/LT+JSQjK7DOllm2l3Ngu1gwHIabadY0plU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Iy4pOP0B; 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="Iy4pOP0B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD991F00898; Wed, 30 Sep 2026 16:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790784434; bh=tmBjWPcCbp0NFDOmSs0n1cAWwdtGY7iyq6GvyvjbPTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Iy4pOP0ByXH6KZ2+F8RBOGbA8RNXhVYmeZksT9DddKwsz/MrTYO0JcYzvIh6icngj FDPBu1Q/laGpsXPomQyeZO6Jc+Be7saH48gyCU5aj8PsgLf/1YY2EfjlQ9NMNa8f5C SZ51kZ0M3bjNb9XAfJ4sqTLXpIhQCgyRjLs7czaQ= 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.1 153/982] ipmi: si: Use platform_get_irq_optional() to retrieve interrupt Date: Wed, 30 Sep 2026 17:14:49 +0200 Message-ID: <20260930152420.099002236@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152416.775402466@linuxfoundation.org> References: <20260930152416.775402466@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.1-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 505cc978c97a0..f7f602067a574 100644 --- a/drivers/char/ipmi/ipmi_si_platform.c +++ b/drivers/char/ipmi/ipmi_si_platform.c @@ -279,7 +279,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