public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: nvec_power: quiesce EC queries for system suspend
@ 2026-03-12 21:11 Gustavo Arantes
  2026-03-12 21:11 ` [PATCH 1/2] staging: nvec_power: make EC queries synchronous Gustavo Arantes
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gustavo Arantes @ 2026-03-12 21:11 UTC (permalink / raw)
  To: gregkh, marvin24
  Cc: linux-staging, ac100, linux-tegra, linux-kernel, dev.gustavoa

nvec_power still issues EC queries asynchronously and keeps work queued
across system sleep. This series first serializes the driver's EC
requests, then adds PM hooks so the remaining work items are quiesced
while the parent NVEC controller is suspended.

Patch 1 exports a small core parser helper, moves the battery metadata
queries into a worker, and switches nvec_power over to synchronous EC
requests.

Patch 2 tracks the suspend state per instance, prevents new work from
being queued during suspend, and restarts the polling and metadata work
on resume.

Gustavo Arantes (2):
  staging: nvec_power: make EC queries synchronous
  staging: nvec_power: stop EC queries during system suspend

 drivers/staging/nvec/nvec.c       |   7 +-
 drivers/staging/nvec/nvec.h       |   2 +
 drivers/staging/nvec/nvec_power.c | 122 +++++++++++++++++++++++++-----
 3 files changed, 111 insertions(+), 20 deletions(-)


base-commit: ad6bb64332bb4297110950769ad5af52791e33a2
-- 
2.53.0

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

end of thread, other threads:[~2026-03-15 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 21:11 [PATCH 0/2] staging: nvec_power: quiesce EC queries for system suspend Gustavo Arantes
2026-03-12 21:11 ` [PATCH 1/2] staging: nvec_power: make EC queries synchronous Gustavo Arantes
2026-03-12 21:11 ` [PATCH 2/2] staging: nvec_power: stop EC queries during system suspend Gustavo Arantes
2026-03-15 20:48 ` [PATCH 0/2] staging: nvec_power: quiesce EC queries for " Marc Dietrich
2026-03-15 21:48   ` Gustavo Arantes

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