diff options
| author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2026-06-18 10:38:18 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-29 18:56:20 +0100 |
| commit | 3359ba93d01a23b2e4249e9e44ccfe48eb9c5d71 (patch) | |
| tree | 42d4a9a8c654a2bdb711dc02a27a03aa83894a66 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 785903b7770f19ea05b8a76081dff691c56fa771 (diff) | |
ASoC: fsl_audmix: rework runtime PM handling in probe
After pm_runtime_enable() the AUDMIX block is powered off and stays
suspended until the first runtime resume. Register writes issued between
probe() and the first resume (e.g. from DAPM or ALSA control paths)
target unpowered hardware and cause a system hang.
Fix this by calling pm_runtime_resume_and_get() immediately after
pm_runtime_enable() to power the hardware up and enable its clocks.
Release the reference afterwards with pm_runtime_put() to allow the
runtime PM framework to suspend the device and switch the regmap to
cache-only mode when idle.
When CONFIG_PM is disabled or runtime PM is not enabled, pm_runtime_*
calls are stubs that do not power up the hardware. Handle this case
explicitly by calling fsl_audmix_runtime_resume() directly so the
hardware is always initialised and its clocks are enabled, ensuring
register accesses succeed regardless of PM configuration.
Fixes: be1df61cf06ef ("ASoC: fsl: Add Audio Mixer CPU DAI driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260618023818.31618-1-shengjiu.wang@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
