Skip to content

Commit db52926

Browse files
EvenxfJiri Kosina
authored andcommitted
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>
1 parent 0132c40 commit db52926

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
@@ -909,6 +909,8 @@ static int quickspi_restore(struct device *device)
909909

910910
thc_change_ltr_mode(qsdev->thc_hw, THC_LTR_MODE_ACTIVE);
911911

912+
qsdev->state = QUICKSPI_ENABLED;
913+
912914
return 0;
913915
}
914916

0 commit comments

Comments
 (0)