Re: [PATCH v1] gpio: mlxbf2: Disable interrupts around the chip lock in direction ops
From: Bartosz Golaszewski
Date: Tue Nov 17 2026 - 03:30:46 EST
On Fri, 13 Nov 2026 13:44:44 -0500, David Thompson wrote:
> mlxbf2_gpio_lock_acquire() takes the generic GPIO chip lock with
> gpio_generic_chip_lock(), a plain raw_spin_lock() that leaves
> interrupts enabled. The same lock is also taken with the irqsave
> variant by the IRQ callbacks (irq_set_type, irq_enable, irq_disable),
> which run with the IRQ descriptor lock held.
>
> This creates a possible deadlock that lockdep reports as an IRQ lock
> inversion:
>
> [...]
Applied, thanks!
[1/1] gpio: mlxbf2: Disable interrupts around the chip lock in direction ops
https://git.kernel.org/brgl/c/f95bdff1d53471159e3c7112c5de4f6240772521
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>