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 4247231CA6D; Mon, 18 Aug 2025 12:52:02 +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=1755521522; cv=none; b=E+c8Mo4l3JVWQi1ggy5LVeCV8tE3fWrTjC7UaRy+nNXrQFU1xV3fUBcTDmPH4sz3jUCuY6QTP4kxO0KiVFMo838bewm4OmkJ5BDLWG4XUGgDkArlmXx4E+UxRTBJVLXdibkFyhTSNmcenBmShORxkj6K/883q15FuUiYUEdM/RM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755521522; c=relaxed/simple; bh=nSAmPPZr8kEn90V/6+yCnZVJfANzJ4QMQu2ksKczATE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qt8GGnQMM2Q9R2W6F/ReoRx7Iur9Nh39oT3l73xJjSNU3HdPzKdsUKrWtuDvv6xm86yj6C4ZeViG1De0PA1eZyfR0v146hKNABkOUQ3uWYgs+KNPK+GoG/s9TVPeRY+P2St4HDFuij2eQwi+sQ3pMqg7hPebkCwMRfPHOl6AKH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fayDygjR; 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="fayDygjR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83C18C4CEEB; Mon, 18 Aug 2025 12:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755521522; bh=nSAmPPZr8kEn90V/6+yCnZVJfANzJ4QMQu2ksKczATE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fayDygjRWXJQ1iv3tMT9y6w33+2tzYk35cfIt63TooNUq5TKmijEno1U/+Ynmu4fc /aJVKScO9HSnE6ELr3k7CCT3ms8C9QKyg7n7agxVokESuYaoAvxH8qaA5CBZGlL/sO iSv5WHgXdFVlM1nIgH29vbGKpgyTWEEqObAkuTCI= 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.12 011/444] gpio: mlxbf3: use platform_get_irq_optional() Date: Mon, 18 Aug 2025 14:40:37 +0200 Message-ID: <20250818124449.327796147@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124448.879659024@linuxfoundation.org> References: <20250818124448.879659024@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.12-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);