From: Marc Dietrich <marvin24@gmx.de>
To: Gustavo Arantes <dev.gustavoa@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
ac100@lists.launchpad.net, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] staging: nvec_power: quiesce EC queries for system suspend
Date: Sun, 15 Mar 2026 21:48:08 +0100 (CET) [thread overview]
Message-ID: <233329fb-0ea9-d784-b56c-f078a329d370@gmx.de> (raw)
In-Reply-To: <20260312211151.85379-1-dev.gustavoa@gmail.com>
Hello Gustavo,
thanks for your patches.
On Thu, 12 Mar 2026, Gustavo Arantes wrote:
> 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.
Reading out the battery info during boot takes some time as far as I
remember, but I haven't tested your patches yet. Is the use of sync
writes really required in order to realize a clean suspend?
AFAIK, the machine doesn't support suspend currently, partily due to
missing atomic writes for the EC. Building the driver as a removable
module may be enough to test the change though.
Are you able to test the change on real hardware?
Best wishes,
Marc
> 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
>
next prev parent reply other threads:[~2026-03-15 20:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-12 21:11 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 ` Marc Dietrich [this message]
2026-03-15 21:48 ` [PATCH 0/2] staging: nvec_power: quiesce EC queries for " Gustavo Arantes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=233329fb-0ea9-d784-b56c-f078a329d370@gmx.de \
--to=marvin24@gmx.de \
--cc=ac100@lists.launchpad.net \
--cc=dev.gustavoa@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®