Skip to content

Commit 4de02de

Browse files
committed
HID: Intel-thc-hid: Intel-quickspi: Correct device state after S4
JIRA: https://issues.redhat.com/browse/RHEL-65754 Upstream Status: since v6.14 Tested: sanity tested only commit db52926 Author: Even Xu <even.xu@intel.com> Date: Tue Mar 4 11:22:55 2025 +0800 HID: Intel-thc-hid: Intel-quickspi: Correct device state after S4 During S4 retore flow, quickspi device was resetted by driver and state was changed to RESETTED. It is needed to be change to ENABLED state after S4 re-initialization finished, otherwise, device will run in wrong state and HID input data will be dropped. Signed-off-by: Even Xu <even.xu@intel.com> Fixes: 6912aaf ("HID: intel-thc-hid: intel-quickspi: Add PM implementation") Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent e72c5d8 commit 4de02de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,8 @@ static int quickspi_restore(struct device *device)
905905

906906
thc_change_ltr_mode(qsdev->thc_hw, THC_LTR_MODE_ACTIVE);
907907

908+
qsdev->state = QUICKSPI_ENABLED;
909+
908910
return 0;
909911
}
910912

0 commit comments

Comments
 (0)