mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Support wm_adsp hibernation for runtime suspend
@ 2026-02-23 16:05 Stefan Binding
  2026-02-23 16:05 ` [PATCH v1 1/3] firmware: cs_dsp: Add API to hibernate the DSP Stefan Binding
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Binding @ 2026-02-23 16:05 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, linux-kernel, patches, Stefan Binding

When the CS35L41 driver suspends, it is 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.

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/wm_adsp.c             |  6 ++++
 sound/soc/codecs/wm_adsp.h             |  1 +
 5 files changed, 60 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-02-23 18:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-23 16:05 [PATCH v1 0/3] Support wm_adsp hibernation for runtime suspend Stefan Binding
2026-02-23 16:05 ` [PATCH v1 1/3] firmware: cs_dsp: Add API to hibernate the DSP Stefan Binding
2026-02-23 16:43   ` Richard Fitzgerald
2026-02-23 18:05   ` kernel test robot
2026-02-23 16:05 ` [PATCH v1 2/3] ASoC: codecs: wm_adsp: Allow wm_adsp to hibernate without stopping DSP Stefan Binding
2026-02-23 16:43   ` Richard Fitzgerald
2026-02-23 16:05 ` [PATCH v1 3/3] ASoC: cs35l41: Hibernate wm_adsp on runtime suspend Stefan Binding

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

Powered by JetHome