Skip to contentSkip to conversation

HID: Intel-thc-hid: Intel-quickspi: Correct device state after S4

PATCH Superseded Even Xu 1 participant 1 message Mar 4, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Even Xu

author maintainer
#0 lore raw

PATCH 1/1 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.

Fixes 6912aaf3fd24 ("HID: intel-thc-hid: intel-quickspi: Add PM implementation")
---
 drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c +2 -0
index 4641e818dfa4..fb0807622a97 100644
@@ -939,6 +939,8 @@ static int quickspi_runtime_resume(struct device *device)
 
 	thc_change_ltr_mode(qsdev->thc_hw, THC_LTR_MODE_ACTIVE);
 
+	qsdev->state = QUICKSPI_ENABLED;
+
 	return 0;
 }
 
Signature · 1 line
2.40.1