Re: [PATCH 0/2] gpio: use raw spinlocks in irq startup paths

From: Bartosz Golaszewski

Date: Thu Jun 18 2026 - 04:04:07 EST



On Wed, 17 Jun 2026 23:40:33 +0800, Runyu Xiao wrote:
> This 2-patch series fixes two GPIO irqchip paths where IRQ startup or
> unmask can update controller state under a regular spinlock. On
> PREEMPT_RT, that lock can sleep while irq_startup() is running in a
> non-sleepable context.
>
> Both issues were found by our static analysis tool and then manually
> reviewed against the current tree. The grounded PoCs kept the
> request_threaded_irq() -> __setup_irq() -> irq_startup() carriers and
> Lockdep reported "BUG: sleeping function called from invalid context" on
> the corresponding driver update helpers.
>
> [...]

Applied, thanks!

[1/2] gpio: sch: use raw_spinlock_t in the irq startup path
https://git.kernel.org/brgl/c/286533cb14a3c8a8bd39ff64ea2fc8e1aa0f638b
[2/2] gpio: eic-sprd: use raw_spinlock_t in the irq startup path
https://git.kernel.org/brgl/c/90f0109019e6817eb40a486671b7722d1544ae29

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>