Re: [PATCH] gpio: pch: use raw_spinlock_t for the register lock
From: Junjie Cao
Date: Mon Jul 27 2026 - 11:30:46 EST
Hi Linus,
Thanks for the review!
> Really? Why to stable? Is this a regression of something that
> used to work before? Using RT is fringe IMO.
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.
Many thanks,
Junjie