Skip to contentSkip to conversation

FAILED: patch "[PATCH] HID: wacom: Write shared touch initial status only once" failed to apply to 5.10-stable tree

PATCH [email protected] 1 participant 1 message Nov 4

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x cae3031c691dff0be61a26bc64e31a6939010d5c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026110438-reexamine-jubilant-7940@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..'

Possible dependencies:

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From cae3031c691dff0be61a26bc64e31a6939010d5c Mon Sep 17 00:00:00 2001
From: Ping Cheng <[email protected]>
Date: Wed, 7 Oct 2026 15:00:27 -0700
Subject: [PATCH] HID: wacom: Write shared touch initial status only once

For consistency with how the shared has_mute_touch_switch is handled during registration, let's apply WRITE_ONCE to is_touch_on too.

Fixes ba16e5ffbaa1 ("HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration")
drivers/hid/wacom_sys.c +1 -1
index 8dc7aa1c0a26..33fa491fba92 100644
@@ -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) {