Patch "ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock" has been added to the 5.9-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: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock

to the 5.9-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-intel-kbl_rt5663_rt5514_max98927-do-not-try-to-.patch
and it can be found in the queue-5.9 subdirectory.

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



commit 6e43053bea3d406b6e265a2d10a6046034e3d7c7
Author: Guenter Roeck <linux@xxxxxxxxxxxx>
Date:   Wed Nov 11 12:54:34 2020 -0800

    ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock
    
    [ Upstream commit 879ee8b6f2bae0cc4a25536f8841db1dbc969523 ]
    
    In kabylake_set_bias_level(), enabling mclk may fail if the clock has
    already been enabled by the firmware. Attempts to disable that clock
    later will fail with a warning backtrace.
    
    mclk already disabled
    WARNING: CPU: 2 PID: 108 at drivers/clk/clk.c:952 clk_core_disable+0x1b6/0x1cf
    ...
    Call Trace:
     clk_disable+0x2d/0x3a
     kabylake_set_bias_level+0x72/0xfd [snd_soc_kbl_rt5663_rt5514_max98927]
     snd_soc_card_set_bias_level+0x2b/0x6f
     snd_soc_dapm_set_bias_level+0xe1/0x209
     dapm_pre_sequence_async+0x63/0x96
     async_run_entry_fn+0x3d/0xd1
     process_one_work+0x2a9/0x526
    ...
    
    Only disable the clock if it has been enabled.
    
    Fixes: 15747a802075 ("ASoC: eve: implement set_bias_level function for rt5514")
    Cc: Brent Lu <brent.lu@xxxxxxxxx>
    Cc: Curtis Malainey <cujomalainey@xxxxxxxxxxxx>
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201111205434.207610-1-linux@xxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
index 922cd0176e1ff..f95546c184aae 100644
--- a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
+++ b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
@@ -700,6 +700,8 @@ static int kabylake_set_bias_level(struct snd_soc_card *card,
 	switch (level) {
 	case SND_SOC_BIAS_PREPARE:
 		if (dapm->bias_level == SND_SOC_BIAS_ON) {
+			if (!__clk_is_enabled(priv->mclk))
+				return 0;
 			dev_dbg(card->dev, "Disable mclk");
 			clk_disable_unprepare(priv->mclk);
 		} else {



[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