]> git.hungrycats.org Git - linux/commit
HID: hid-lenovo-go-s: Add suspend function and gate access under bool.
authorDerek J. Clark <derekjohn.clark@gmail.com>
Mon, 14 Sep 2026 22:52:59 +0000 (15:52 -0700)
committerJiri Kosina <jkosina@suse.com>
Fri, 16 Oct 2026 10:02:06 +0000 (12:02 +0200)
commite69b64d3d75eb10177f75d3d4947e032cb46eeb9
tree032ee06515ccbaa6a0f024b228595e63e923a8e1
parent81e8c0bb3831fb84ef44417bba1b52333d0580a9
HID: hid-lenovo-go-s: Add suspend function and gate access under bool.

Currently a device can suspend while delayed work is pending or
executing. Cancel delayed work if it was pending and restart it if it
hasn't run yet. Gate access to show/store functions behind a bool to
prevent access prior to cfg_setup() being completed.

Fixes: a23f3497bf208c59ad ("HID: hid-lenovo-go-s: Add Lenovo Legion Go S Series HID Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lenovo-go-s.c