Re: [PATCH v2] platform/x86: Add WMI driver for Redmibook keyboard.
From: foxidokun
Date: Mon Aug 11 2025 - 17:40:55 EST
> > + /* For linearizability */
> > + guard(mutex)(&data->key_lock);
>
> What is the exact purpose of this mutex? What does it protect?
It protects key sequence, so there wouldn't be race between two press & release combinations resuulting into press - press - release - release order.
--
Gladyshev Ilya