Re: [PATCH v1 1/3] firmware: cs_dsp: Add API to hibernate the DSP
From: Richard Fitzgerald
Date: Mon Feb 23 2026 - 11:57:54 EST
On 23/02/2026 4:05 pm, Stefan Binding wrote:
For some parts, the DSP is kept running when in low power modeReviewed-by: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
(hibernation), leaving the firmware ALSA controls enabled, but the
registers are inaccessible. Attempts to access volatile firmware
controls whilst in this state would produce errors in the kernel log
due to a regmap_raw_read() into DSP registers whilst the regmap is in
cache_only.
To remove this error log, add a hibernating flag to indicate that the
controls are inaccessible, so we no longer try to read or write to the
registers whilst the regmap is in cache_only.
This would still produce an error when trying to read or write to these
controls, but this would be a different error (-EPERM instead of
-EBUSY), and would not produce a spurious error log in the kernel.
Upon wake from hibernation, the control caches are re-synced to the
hardware, if the DSP is running.
Signed-off-by: Stefan Binding <sbinding@xxxxxxxxxxxxxxxxxxxxx>
---