mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND v1] HID: Intel-thc-hid: Intel-quickspi: Correct device state after S4
@ 2025-03-04  3:22 Even Xu
  2025-03-04 20:54 ` Jiri Kosina
  0 siblings, 1 reply; 10+ messages in thread
From: Even Xu @ 2025-03-04  3:22 UTC (permalink / raw)
  To: jikos, bentiss
  Cc: srinivas.pandruvada, mpearson-lenovo, linux-input, linux-kernel, Even Xu

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")
---
 drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 }
 
-- 
2.40.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-03-07  8:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-04  3:22 [PATCH RESEND v1] HID: Intel-thc-hid: Intel-quickspi: Correct device state after S4 Even Xu
2025-03-04 20:54 ` Jiri Kosina
2025-03-05  0:59   ` Xu, Even
2025-03-05  5:36     ` Jiri Kosina
2025-03-05  5:48       ` Xu, Even
2025-03-05  8:44         ` Jiri Kosina
2025-03-05  8:45           ` Xu, Even
2025-03-06 11:08           ` Xu, Even
2025-03-07  8:10             ` Jiri Kosina
2025-03-07  8:17               ` Xu, Even

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®