Skip to contentSkip to conversation

ASoC: cs35l56: Call pm_runtime_dont_use_autosuspend()

PATCH Applied Richard Fitzgerald 2 participants 2 messages Oct 2, 2023 – Oct 3, 2023 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: cs35l56: Call pm_runtime_dont_use_autosuspend()

commit ec03804552e9a723569e14d2512f36a8e70dc640 upstream

Driver remove() must call pm_runtime_dont_use_autosuspend().

Drivers that call pm_runtime_use_autosuspend() must disable it in driver remove(). Unfortunately until recently this was only mentioned in 1 line in a 900+ line document so most people hadn't noticed this. It has only recently been added to the kerneldoc of pm_runtime_use_autosuspend().

Backport note: This is the same change as the upstream commit but the cs35l56->base.dev argument in the upstream code is cs35l56->dev in older releases.

---
Please apply to 6.5.

---
 sound/soc/codecs/cs35l56.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/cs35l56.c +1 -0
index fd06b9f9d496..7e241908b5f1 100644
@@ -1594,6 +1594,7 @@ void cs35l56_remove(struct cs35l56_private *cs35l56)
 	flush_workqueue(cs35l56->dsp_wq);
 	destroy_workqueue(cs35l56->dsp_wq);
 
+	pm_runtime_dont_use_autosuspend(cs35l56->dev);
 	pm_runtime_suspend(cs35l56->dev);
 	pm_runtime_disable(cs35l56->dev);
 
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 10 lines · Richard Fitzgerald

commit ec03804552e9a723569e14d2512f36a8e70dc640 upstream

Driver remove() must call pm_runtime_dont_use_autosuspend().

Drivers that call pm_runtime_use_autosuspend() must disable it in driver remove(). Unfortunately until recently this was only mentioned in 1 line in a 900+ line document so most people hadn't noticed this. It has only recently been added to the kerneldoc of pm_runtime_use_autosuspend().

Quoted 3 lines

Backport note: This is the same change as the upstream commit but the cs35l56->base.dev argument in the upstream code is cs35l56->dev in older releases.

Queued up, thanks!

Signature · 2 lines
Thanks,
Sasha