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 1D7BF51FCD9; Wed, 30 Sep 2026 17:55:18 +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=1790790919; cv=none; b=FkKy0sNZwY3qGqIUeGRJuHiDUFCgRPsyruA8m6GQzs1YFccZQmzrEb/VZoyEdQm9nMYMmK4LWlYa0PPueGAGGbHfZvBWxdirBPTf1JwwWimwYzsnOKYc29ySz0WLzqCODb8T8UnDoMveYtIY0jOs5EUvRaePsV71LAMH4QkGgs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790790919; c=relaxed/simple; bh=PxJUza089yJjE+rtTV++ErlOrUOO5j2jw5wPsalbfys=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C9BkWuhwQuSEozdutWHej6LsAUAKnZK9DK4zsBr1tclDGL8hfV03xA28bAahEBSuDfGmxcgjbGpVtIWqrhm3K83DsWLtyA3GspGB7bxnH1cC0+43gGQdWEF9lmv5hheKrs3YPL7YFGZjPN/s/oIsIN++jGNzW7i25zzhggcdtfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=afuSIHkJ; 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="afuSIHkJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69EBC1F000FF; Wed, 30 Sep 2026 17:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790790918; bh=qr/6W0ac1WKb7tK5/ebNX35nw5eYa+R6ZhUSr9A5e50=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=afuSIHkJxjVNj5oszTiRgYbKq8OwMU8IgezuugQxXK2iK4kd7cP0vZu2YWLRsBOYm DRwBK7FOhTH3aE/aoMTlvKGNM0VFETUcd9bgunoURvefYTSzZy+qb+InhsFY5e2t6v 6aG98TpVVOZ121/SHBZpkH8gqmxTMNkXalGxwrsY= 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 5.15 118/752] ipmi: si: Use platform_get_irq_optional() to retrieve interrupt Date: Wed, 30 Sep 2026 17:19:48 +0200 Message-ID: <20260930152400.732402342@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152358.131179731@linuxfoundation.org> References: <20260930152358.131179731@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 5.15-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