[SRU][J/N:linux-bluefield][PATCH v1 0/1] gpio_mlxbf2: error getting IRQ for instance 1 and 2

David Thompson davthompson at nvidia.com
Tue Aug 5 20:37:14 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2119569

SRU Justification:

[Impact]
The gpio-mlxbf2 driver interfaces with four GPIO controllers,
device instances 0-3. There are two IRQ resources shared between
the four controllers, and they are found in the ACPI table for
instances 0 and 3. The driver should not use platform_get_irq(),
otherwise this error is logged when probing instances 1 and 2:
      mlxbf2_gpio MLNXBF22:01: error -ENXIO: IRQ index 0 not found

[Fix]
The fix is to cherry pick the following upstream patch:
    63c7bc53a35e gpio: mlxbf2: use platform_get_irq_optional()
which makes use of the "platform_get_irq_optional()" API.

[Test Case]
* Boot BlueField-2 platform with software containing fix
* Verify that gpio-mlxbf2 module is loaded properly
* Check the kernel log via dmesg for proper messages from gpio subsystem
* Verify that there are no error logs caused by gpio-mlxbf2
* Reboot several times and keep checking log

[Regression Potential]
This fix is upstreamed and tested well.

David Thompson (1):
  gpio: mlxbf2: use platform_get_irq_optional()

 drivers/gpio/gpio-mlxbf2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.2




More information about the kernel-team mailing list