]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: mlxbf3: use platform_get_irq_optional()
authorDavid Thompson <davthompson@nvidia.com>
Mon, 11 Aug 2025 17:50:45 +0000 (13:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:10 +0000 (16:28 +0200)
commit16a46f2e84d76284da05f56102a2cf40df6ad1b7
tree8697cfd30b022ea5539427b765b744d8a8fd584c
parentc1aa0743e54b52328207db0524d64357509f60cc
gpio: mlxbf3: use platform_get_irq_optional()

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 <davthompson@nvidia.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/ce70b98a201ce82b9df9aa80ac7a5eeaa2268e52.1754928650.git.davthompson@nvidia.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-mlxbf3.c