Patch "ASoC: cs35l56: Call pm_runtime_dont_use_autosuspend()" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: cs35l56: Call pm_runtime_dont_use_autosuspend()

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-cs35l56-call-pm_runtime_dont_use_autosuspend.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1d9a464003bafe41509f2b539ae0bcb93215f99f
Author: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
Date:   Mon Oct 2 13:50:59 2023 +0100

    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.
    
    Signed-off-by: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230908101716.2658582-1-rf@xxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c
index fd06b9f9d496d..7e241908b5f16 100644
--- a/sound/soc/codecs/cs35l56.c
+++ b/sound/soc/codecs/cs35l56.c
@@ -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);
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux