Re: [PATCH 2/2] gpio: eic-sprd: use raw_spinlock_t in the irq startup path
From: Sebastian Andrzej Siewior
Date: Thu Jun 18 2026 - 02:33:09 EST
On 2026-06-17 23:40:35 [+0800], Runyu Xiao wrote:
> sprd_eic_irq_unmask() enables the GPIO IRQ and then updates controller
> state through sprd_eic_update(), which takes sprd_eic->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: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Sebastian