Re: [PATCH] gpio: pch: use raw_spinlock_t for the register lock

Bartosz Golaszewski <[email protected]> Mon, 27 Jul 2026 15:08:11 +0200
Newsgroups dev.linux.lists.linux-rt-devel,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
On Thu, 23 Jul 2026 09:41:29 +0800, Junjie Cao wrote:
> pch_irq_type() is registered as the irq_chip .irq_set_type callback and
> takes chip->spinlock with spin_lock_irqsave().  This callback is reached
> from __setup_irq() -> __irq_set_trigger() -> chip->irq_set_type() while
> the caller holds desc->lock, a raw_spinlock_t, with hardirqs disabled.
> That context is not sleepable, but on PREEMPT_RT a regular spinlock_t is
> an rtmutex-backed sleeping lock, so acquiring it there is invalid.
> 
> [...]

Applied, thanks!

[1/1] gpio: pch: use raw_spinlock_t for the register lock
      https://git.kernel.org/brgl/c/a02b8950d619123da64f69b70fe1dadef217dfe4

Best regards,
-- 
Bartosz Golaszewski <[email protected]>