]> 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:11:46 +0000 (11:11 +0100)
commitfddf20b3341d8af171fd7adbe03fb5d6832b0f5a
tree498b399f473a46148c2adcf7e4e87be390c62582
parentb99cf44daacfd5c104cc1956d2a4479e5653708a
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