From: foxidokun <foxido@foxido.dev>
To: dmitry.torokhov@gmail.com
Cc: foxido@foxido.dev, hansg@kernel.org,
ilpo.jarvinen@linux.intel.com, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org, nikita.nikita.krasnov@gmail.com,
platform-driver-x86@vger.kernel.org, w_armin@gmx.de
Subject: Re: [PATCH v2] platform/x86: Add WMI driver for Redmibook keyboard.
Date: Tue, 12 Aug 2025 00:23:53 +0300 [thread overview]
Message-ID: <20250811212353.4494-1-foxido@foxido.dev> (raw)
In-Reply-To: <5e32uo4suh3mtib4tohtekwvycxgfzqcem3wwc6k6wwdxyjhpc@bt57y7vyvpmz>
> > + /* 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
prev parent reply other threads:[~2025-08-11 21:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-29 19:05 Gladyshev Ilya
2025-07-30 16:33 ` Armin Wolf
2025-07-30 17:37 ` Gladyshev Ilya
2025-07-30 17:52 ` Armin Wolf
2025-08-05 19:42 ` Dmitry Torokhov
2025-08-11 21:23 ` foxidokun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250811212353.4494-1-foxido@foxido.dev \
--to=foxido@foxido.dev \
--cc=dmitry.torokhov@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nikita.nikita.krasnov@gmail.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=w_armin@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®