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

Linus Walleij <[email protected]> Wed, 29 Jul 2026 09:22:13 +0200
Newsgroups dev.linux.lists.linux-rt-devel,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <CAD++jL=Wu44V2CyZaky35+mb2RBJ7d3wRsmYWfK-8D5_Pck=dw@mail.gmail.com>
On Mon, Jul 27, 2026 at 5:19=E2=80=AFPM Junjie Cao <[email protected]> w=
rote:

> No -- it is indeed not a regression: the lock has been a plain
> spinlock_t since IRQ support landed in 2011, so it never worked on
> PREEMPT_RT rather than regressing. I Cc'd stable because current LTS
> kernels with PREEMPT_RT hit this sleeping-in-atomic BUG today, like
> the two fixes I referenced (286533cb14a3, 90f0109019e6, both Cc'd
> stable); Bartosz has since applied it with the tag kept, so I'm happy
> to defer to whatever you and he prefer.

It's no big deal, the stable people pick a lot of random stuff I don't
even understand anyway. If they want it, they will take it.

Yours,
Linus Walleij