Linux Input/HID development
 help / color / mirror / Atom feed
From: Ping Cheng <pinglinux@gmail.com>
To: lee@kernel.org, jikos@kernel.org, bentiss@kernel.org,
	linux-input@vger.kernel.org
Cc: stable@vger.kernel.org, Ping Cheng <ping.cheng@wacom.com>
Subject: [PATCH 1/2] Write shared touch initial status only once
Date: Tue, 15 Sep 2026 19:03:01 -0700	[thread overview]
Message-ID: <20260916020301.24188-1-ping.cheng@wacom.com> (raw)

From: Ping Cheng <ping.cheng@wacom.com>

To match the same logic as with other shared data during registeration,
use WRITE_ONCE for is_touch_on too.

Cc: stable@vger.kernel.org
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
---
 drivers/hid/wacom_sys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 8dc7aa1c0a26..33fa491fba92 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -2386,7 +2386,7 @@ static void wacom_set_shared_values(struct wacom_wac *wacom_wac)
 		 * match historic default.
 		 */
 		if (wacom_wac->is_soft_touch_switch)
-			wacom_wac->shared->is_touch_on = true;
+			WRITE_ONCE(wacom_wac->shared->is_touch_on, true);
 	}
 
 	if (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH) {
-- 
2.55.0


             reply	other threads:[~2026-09-16  2:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16  2:03 Ping Cheng [this message]
2026-09-21 17:54 ` [PATCH 1/2] Write shared touch initial status only once Ping Cheng
2026-09-22  7:31   ` Lee Jones
2026-09-22 21:16     ` Ping Cheng

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=20260916020301.24188-1-ping.cheng@wacom.com \
    --to=pinglinux@gmail.com \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=ping.cheng@wacom.com \
    --cc=stable@vger.kernel.org \
    /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