Skip to content

staging: nvec_power: quiesce EC queries for system suspend

Gustavo Arantes linux-staging linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging: nvec_power: make EC queries synchronousdrivers/staging/nvec/nvec.c drivers/staging/nvec/nvec.h drivers/staging/nvec/nvec_power.c+61 -180 replies
2/2staging: nvec_power: stop EC queries during system suspenddrivers/staging/nvec/nvec_power.c+50 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] staging: nvec_power: quiesce EC queries for system suspend

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

Signature · 1 line
2.53.0