diff options
author | Even Xu <even.xu@intel.com> | 2025-03-04 06:22:55 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-03-04 23:54:30 +0300 |
commit | db52926fb0be40e1d588a346df73f5ea3a34a4c6 (patch) | |
tree | f7b39e17ad2d11c0db49382562448e00af21a9a8 | |
parent | 0132c406705a466b95854ce1058f3d8354f90a42 (diff) | |
download | linux-db52926fb0be40e1d588a346df73f5ea3a34a4c6.tar.xz |
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: 6912aaf3fd24 ("HID: intel-thc-hid: intel-quickspi: Add PM implementation")
Signed-off-by: Jiri Kosina <jkosina@suse.com>
-rw-r--r-- | drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c b/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c index 4641e818dfa4..6b2c7620be2b 100644 --- a/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c +++ b/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c @@ -909,6 +909,8 @@ static int quickspi_restore(struct device *device) thc_change_ltr_mode(qsdev->thc_hw, THC_LTR_MODE_ACTIVE); + qsdev->state = QUICKSPI_ENABLED; + return 0; } |