]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 18 Jun 2025 10:19:39 +0000 (12:19 +0200)
commit10af0273a35ab4513ca1546644b8c853044da134
tree4a8d80bcd3bb25af14fbf3da89e3a72eaa4f7634
parent0a1db19f66c0960eb00e1f2ccd40708b6747f5b1
gpio: mlxbf3: only get IRQ for device instance 0

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>
drivers/gpio/gpio-mlxbf3.c