]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: mlxbf3: only get IRQ for device instance 0
authorDavid Thompson <davthompson@nvidia.com>
Fri, 13 Jun 2025 16:34:43 +0000 (16:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:13:43 +0000 (11:13 +0100)
commiteb46bc2c033bf5e26d44bf4d21190308a138c03a
treee1c8c59b913ebe608cb04e4431175ff17658b39d
parentcaa9654112d94eb47f57ae5c35b6fe8d85f5cb38
gpio: mlxbf3: only get IRQ for device instance 0

[ Upstream commit 10af0273a35ab4513ca1546644b8c853044da134 ]

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 attempt to get an IRQ
resource when probing device instance 1, otherwise the following
error is logged:
  mlxbf3_gpio MLNXBF33:01: error -ENXIO: IRQ index 0 not found

Signed-off-by: David Thompson <davthompson@nvidia.com>
Reviewed-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Fixes: cd33f216d241 ("gpio: mlxbf3: Add gpio driver support")
Link: https://lore.kernel.org/r/20250613163443.1065217-1-davthompson@nvidia.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mlxbf3.c