Re: [PATCH 1/2] gpio: sch: use raw_spinlock_t in the irq startup path
From: Sebastian Andrzej Siewior
Date: Thu Jun 18 2026 - 02:29:00 EST
On 2026-06-17 23:40:34 [+0800], Runyu Xiao wrote:
> sch_irq_unmask() enables the GPIO IRQ and then updates the controller
> state through sch_irq_mask_unmask(), which takes sch->lock with
> spin_lock_irqsave(). The callback can be reached from irq_startup()
> while setting up a requested IRQ. That path is not sleepable, but on
> PREEMPT_RT a regular spinlock_t becomes a sleeping lock.
…
> Fixes: 7a81638485c1 ("gpio: sch: Add edge event support")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Sebastian