]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: Intel-thc-hid: Intel-thc: Fix wrong register fields updating
authorEven Xu <even.xu@intel.com>
Mon, 2 Feb 2026 03:01:44 +0000 (11:01 +0800)
committerJiri Kosina <jkosina@suse.com>
Mon, 2 Feb 2026 13:39:30 +0000 (14:39 +0100)
commite4aa247d94a04574297a8bc9fabbede0dcba1ab6
tree736006aae9ccbc9e03f470dd8852880b4fdbe7c1
parent56f7db581ee73af53cd512e00a6261a025bf1d58
HID: Intel-thc-hid: Intel-thc: Fix wrong register fields updating

Clear the target bit fields in register before setting new values. This
ensures proper field updates by removing any existing bits that might
interfere with the new configuration.

Fixes: 22da60f0304b ("HID: Intel-thc-hid: Intel-thc: Introduce interrupt delay control")
Fixes: 45e92a093099 ("HID: Intel-thc-hid: Intel-thc: Introduce max input size control")
Signed-off-by: Even Xu <even.xu@intel.com>
Tested-by: Rui Zhang <rui1.zhang@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c