From: Stefan Binding <sbinding@opensource.cirrus.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
patches@opensource.cirrus.com,
Stefan Binding <sbinding@opensource.cirrus.com>
Subject: [PATCH v2 0/4] Support wm_adsp hibernation for runtime suspend
Date: Tue, 24 Feb 2026 16:18:04 +0000 [thread overview]
Message-ID: <20260224161821.93365-1-sbinding@opensource.cirrus.com> (raw)
When the CS35L41 and CS35L45 drivers suspend, they are put into
hibernation, and the regmap goes into cache_only, but the firmware is
still running, and wm_adsp is not stopped. If userspace attempts to
read a firmware control, it will perform a regmap_raw_read() and this
will produce an error in the kernel log.
To prevent these spurious errors, add an apis into cs_dsp and wm_adsp
to allow wm_adsp to hibernate. In this hibernation mode, reads or
writes to the dsp controls would be rejected with -EPERM rather than
-EBUSY, and no error will be printed to the kernel log.
Changes Since v1:
- Fix minor error in cs_dsp API documentation
- Add similar patch to use new wm_adsp api for CS35L45
Ricardo Rivera-Matos (1):
ASoC: cs35l45: Hibernate wm_adsp on runtime suspend
Stefan Binding (3):
firmware: cs_dsp: Add API to hibernate the DSP
ASoC: codecs: wm_adsp: Allow wm_adsp to hibernate without stopping DSP
ASoC: cs35l41: Hibernate wm_adsp on runtime suspend
drivers/firmware/cirrus/cs_dsp.c | 49 +++++++++++++++++++++++---
include/linux/firmware/cirrus/cs_dsp.h | 3 ++
sound/soc/codecs/cs35l41.c | 5 +++
sound/soc/codecs/cs35l45.c | 3 ++
sound/soc/codecs/wm_adsp.c | 6 ++++
sound/soc/codecs/wm_adsp.h | 1 +
6 files changed, 63 insertions(+), 4 deletions(-)
--
2.43.0
next reply other threads:[~2026-02-24 16:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 16:18 Stefan Binding [this message]
2026-02-24 16:18 ` [PATCH v2 1/4] firmware: cs_dsp: Add API to hibernate the DSP Stefan Binding
2026-02-27 9:58 ` Richard Fitzgerald
2026-02-24 16:18 ` [PATCH v2 2/4] ASoC: codecs: wm_adsp: Allow wm_adsp to hibernate without stopping DSP Stefan Binding
2026-02-27 9:58 ` Richard Fitzgerald
2026-02-24 16:18 ` [PATCH v2 3/4] ASoC: cs35l41: Hibernate wm_adsp on runtime suspend Stefan Binding
2026-02-24 16:18 ` [PATCH v2 4/4] ASoC: cs35l45: " Stefan Binding
2026-03-03 11:20 ` [PATCH v2 0/4] Support wm_adsp hibernation for " Mark Brown
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=20260224161821.93365-1-sbinding@opensource.cirrus.com \
--to=sbinding@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
/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