ASoC: mediatek: mt8186: Remove unused mt8186_afe_(suspend|resume)_clock
Subsystems (3)
PATCH 1/1 ASoC: mediatek: mt8186: Remove unused mt8186_afe_(suspend|resume)_clock
From: "Dr. David Alan Gilbert" <[email protected]>
mt8186_afe_resume_clock() and mt8186_afe_suspend_clock() were added in 2022 by
commit 55b423d5623c ("ASoC: mediatek: mt8186: support audio clock control in platform driver")
but have remained unused.
Remove them.
--- sound/soc/mediatek/mt8186/mt8186-afe-clk.c | 55 ---------------------- sound/soc/mediatek/mt8186/mt8186-afe-clk.h | 2 - 2 files changed, 57 deletions(-)
sound/soc/mediatek/mt8186/mt8186-afe-clk.c +0 -55
@@ -329,61 +329,6 @@ void mt8186_afe_disable_clock(struct mtk_base_afe *afe)clk_disable_unprepare (afe_priv->clk[CLK_INFRA_SYS_AUDIO ]); } -int mt8186_afe_suspend_clock (struct mtk_base_afe *afe) -{ -struct mt8186_afe_private *afe_priv = afe->platform_priv; -int ret; - -/* set audio int bus to 26M */ - ret =clk_prepare_enable (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); -if (ret) { -dev_info (afe->dev,"%s clk_prepare_enable %s fail %d\n" , - __func__, aud_clks[CLK_MUX_AUDIOINTBUS ], ret); - goto clk_mux_audio_intbus_err; - } - ret =mt8186_set_audio_int_bus_parent (afe,CLK_CLK26M ); -if (ret) - goto clk_mux_audio_intbus_parent_err; - -clk_disable_unprepare (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); - -return 0 ; - -clk_mux_audio_intbus_parent_err: -mt8186_set_audio_int_bus_parent (afe,CLK_TOP_MAINPLL_D2_D4 ); -clk_mux_audio_intbus_err: -clk_disable_unprepare (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); -return ret; -} - -int mt8186_afe_resume_clock (struct mtk_base_afe *afe) -{ -struct mt8186_afe_private *afe_priv = afe->platform_priv; -int ret; - -/* set audio int bus to normal working clock */ - ret =clk_prepare_enable (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); -if (ret) { -dev_info (afe->dev,"%s clk_prepare_enable %s fail %d\n" , - __func__, aud_clks[CLK_MUX_AUDIOINTBUS ], ret); - goto clk_mux_audio_intbus_err; - } - ret =mt8186_set_audio_int_bus_parent (afe, -CLK_TOP_MAINPLL_D2_D4 ); -if (ret) - goto clk_mux_audio_intbus_parent_err; - -clk_disable_unprepare (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); - -return 0 ; - -clk_mux_audio_intbus_parent_err: -mt8186_set_audio_int_bus_parent (afe,CLK_CLK26M ); -clk_mux_audio_intbus_err: -clk_disable_unprepare (afe_priv->clk[CLK_MUX_AUDIOINTBUS ]); -return ret; -} -int mt8186_apll1_enable (struct mtk_base_afe *afe) {struct mt8186_afe_private *afe_priv = afe->platform_priv;
sound/soc/mediatek/mt8186/mt8186-afe-clk.h +0 -2
@@ -85,8 +85,6 @@ int mt8186_afe_enable_cgs(struct mtk_base_afe *afe);void mt8186_afe_disable_cgs (struct mtk_base_afe *afe);int mt8186_afe_enable_clock (struct mtk_base_afe *afe);void mt8186_afe_disable_clock (struct mtk_base_afe *afe); -int mt8186_afe_suspend_clock (struct mtk_base_afe *afe); -int mt8186_afe_resume_clock (struct mtk_base_afe *afe);int mt8186_apll1_enable (struct mtk_base_afe *afe);void mt8186_apll1_disable (struct mtk_base_afe *afe);
Signature · 1 line
2.48.1
Mark Brown
maintainerQuoted 8 lines · On Thu, 06 Feb 2025 01:40:28 +0000, [email protected] wrote:
mt8186_afe_resume_clock()andmt8186_afe_suspend_clock()were added in 2022 by
commit55b423d5623c("ASoC: mediatek: mt8186: support audio clock control in platform driver")but have remained unused.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8186: Remove unused mt8186_afe_(suspend|resume)_clock
commit: 78e66dd5f32a1a8e5ee6decadd4e4dffa7d2c40d
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark