From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F2E2C22A7E0; Mon, 18 Aug 2025 13:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523031; cv=none; b=KxEmwyTdvGzAzC/wb7wNXyVHMAHNy4wxF9+Ot1AosdQt9oG5O/UHzbDIW/iNnsU6QcUmaHnoMdZz+BhVrpAeT+zohYWFlyInQn8mWUsNWApGAIaPtYm7Z1w06vKxWJCqg3xCgmhQbtrjjCqOMgS/shcSAx5fmmQSHBAQ0tT/qcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523031; c=relaxed/simple; bh=wm2z4ma9IjJSy3w6e8KasFdR/zWrVcWcEA2AfkQ9ouE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LSGqR5iskaHlh6tEMzoAoGlcCNhSqMEvPffUUz4xQbIjwwIxbG58qNMokDCXk+PMOkG9udAzUjZLEcPi36bwDoEKPNPlNCWEPdTqDMqvhTXL/lk4ChU+9gqeCh12KNAGTKWPWqalkT9GCKdDrZgaBmmdGG0dInumF2HPNYQkA2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QoU9T0wg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QoU9T0wg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CBA2C4CEEB; Mon, 18 Aug 2025 13:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755523030; bh=wm2z4ma9IjJSy3w6e8KasFdR/zWrVcWcEA2AfkQ9ouE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoU9T0wg+kOVwC6rnu1MJLBfq48bFx3mnPOvoE/4vbxHh/HrbcUNCOkdj0m1nsI4n AY+l8SYJlHVZSCHF7jG4u/TGd93GQ7EkET5Z7Fvy9WlTu7dYAtn8h8a9/Q015kHbeL zCJMLjfgpemHycELD0Hw9eCkZIwzsX6eN8Pd8/tc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Thompson , Andy Shevchenko , Bartosz Golaszewski Subject: [PATCH 6.15 016/515] gpio: mlxbf3: use platform_get_irq_optional() Date: Mon, 18 Aug 2025 14:40:02 +0200 Message-ID: <20250818124458.937435428@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124458.334548733@linuxfoundation.org> References: <20250818124458.334548733@linuxfoundation.org> User-Agent: quilt/0.68 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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Thompson commit 810bd9066fb1871b8a9528f31f2fdbf2a8b73bf2 upstream. The gpio-mlxbf3 driver interfaces with two GPIO controllers, device instance 0 and 1. There is a single IRQ resource shared between the two controllers, and it is found in the ACPI table for device instance 0. The driver should not use platform_get_irq(), otherwise this error is logged when probing instance 1: mlxbf3_gpio MLNXBF33:01: error -ENXIO: IRQ index 0 not found Cc: stable@vger.kernel.org Fixes: cd33f216d241 ("gpio: mlxbf3: Add gpio driver support") Signed-off-by: David Thompson Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/ce70b98a201ce82b9df9aa80ac7a5eeaa2268e52.1754928650.git.davthompson@nvidia.com Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-mlxbf3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-mlxbf3.c +++ b/drivers/gpio/gpio-mlxbf3.c @@ -227,7 +227,7 @@ static int mlxbf3_gpio_probe(struct plat gc->owner = THIS_MODULE; gc->add_pin_ranges = mlxbf3_gpio_add_pin_ranges; - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); if (irq >= 0) { girq = &gs->gc.irq; gpio_irq_chip_set_chip(girq, &gpio_mlxbf3_irqchip);