Re: [PATCH] HID: intel-thc-hid: intel-thc: raw spinlocks for registers

From: Jiri Kosina

Date: Fri Nov 27 2026 - 03:09:57 EST


On Wed, 18 Nov 2026, Emfox Zhou wrote:

> The primary interrupt handlers of intel-quickspi, intel-quicki2c and
> intel-ipts reach the registers from hardirq context. The map is a fast_io
> one, so its lock is a spinlock_t, which on PREEMPT_RT is a sleeping lock:
> taking it there is an invalid wait context.
>
> Ask for a raw spinlock instead. The accessors only touch MMIO, and the map
> is fast_io precisely because it is used where sleeping is not possible, so
> nothing else changes.
>
> Signed-off-by: Emfox Zhou <emfox@xxxxxxxxxx>

Applied, thanks.

--
Jiri Kosina
SUSE Labs