ASoC: SOF: fix HDA direct MMIO access
Subsystems (3)
PATCH 1/1 ASoC: SOF: fix HDA direct MMIO access
The recent change to remove the bus->io_ops callbacks used an older version of the SOF code base, and when merged into Mark's for-next it invalidated changes, resulting in broken compilation identified by kbuild and reproduced during the weekly SOF rebase.
Restore SOF code overridden by git merge and apply Takashi's intended change in the 'right' location.
--- sound/soc/sof/intel/hda-ctrl.c | 2 +- sound/soc/sof/intel/hda-dsp.c | 39 ---------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-)
sound/soc/sof/intel/hda-ctrl.c +1 -1
@@ -254,7 +254,7 @@ int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset)#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )/* Reset stream-to-link mapping */ list_for_each_entry (hlink, &bus->hlink_list, list) - bus->io_ops->reg_writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV ); +writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV );#endif bus->chip_init = true;
sound/soc/sof/intel/hda-dsp.c +0 -39
@@ -354,45 +354,6 @@ static int hda_resume(struct snd_sof_dev *sdev, bool runtime_resume)return ret; } -hda_dsp_ctrl_misc_clock_gating (sdev, false); - -/* Reset stream-to-link mapping */ -list_for_each_entry (hlink, &bus->hlink_list, list) -writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV ); - -hda_dsp_ctrl_misc_clock_gating (sdev, true); -#else - -hda_dsp_ctrl_misc_clock_gating (sdev, false); - -/* reset controller */ - ret =hda_dsp_ctrl_link_reset (sdev, true); -if (ret <0 ) { -dev_err (sdev->dev, -"error: failed to reset controller during resume\n" ); -return ret; - } - -/* take controller out of reset */ - ret =hda_dsp_ctrl_link_reset (sdev, false); -if (ret <0 ) { -dev_err (sdev->dev, -"error: failed to ready controller during resume\n" ); -return ret; - } - -/* enable hda bus irq */ -snd_sof_dsp_update_bits (sdev,HDA_DSP_HDA_BAR ,SOF_HDA_INTCTL , -SOF_HDA_INT_CTRL_EN |SOF_HDA_INT_GLOBAL_EN , -SOF_HDA_INT_CTRL_EN |SOF_HDA_INT_GLOBAL_EN ); - -hda_dsp_ctrl_misc_clock_gating (sdev, true); -#endif - -/* enable ppcap interrupt */ -hda_dsp_ctrl_ppcap_enable (sdev, true); -hda_dsp_ctrl_ppcap_int_enable (sdev, true); -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )/* check jack status */ if (runtime_resume)
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: SOF: fix HDA direct MMIO access" to the asoc tree
The patch
ASoC: SOF: fix HDA direct MMIO access
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
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
Quoted 1 line
From
9c6c417d95d83999c16965186f6e755ad8a8b658Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 12 Aug 2019 14:05:02 -0500
Subject: [PATCH] ASoC: SOF: fix HDA direct MMIO access
The recent change to remove the bus->io_ops callbacks used an older version of the SOF code base, and when merged into Mark's for-next it invalidated changes, resulting in broken compilation identified by kbuild and reproduced during the weekly SOF rebase.
Restore SOF code overridden by git merge and apply Takashi's intended change in the 'right' location.
--- sound/soc/sof/intel/hda-ctrl.c | 2 +- sound/soc/sof/intel/hda-dsp.c | 39 ---------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-)
sound/soc/sof/intel/hda-ctrl.c +1 -1
@@ -254,7 +254,7 @@ int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset)#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )/* Reset stream-to-link mapping */ list_for_each_entry (hlink, &bus->hlink_list, list) - bus->io_ops->reg_writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV ); +writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV );#endif bus->chip_init = true;
sound/soc/sof/intel/hda-dsp.c +0 -39
@@ -354,45 +354,6 @@ static int hda_resume(struct snd_sof_dev *sdev, bool runtime_resume)return ret; } -hda_dsp_ctrl_misc_clock_gating (sdev, false); - -/* Reset stream-to-link mapping */ -list_for_each_entry (hlink, &bus->hlink_list, list) -writel (0 , hlink->ml_addr +AZX_REG_ML_LOSIDV ); - -hda_dsp_ctrl_misc_clock_gating (sdev, true); -#else - -hda_dsp_ctrl_misc_clock_gating (sdev, false); - -/* reset controller */ - ret =hda_dsp_ctrl_link_reset (sdev, true); -if (ret <0 ) { -dev_err (sdev->dev, -"error: failed to reset controller during resume\n" ); -return ret; - } - -/* take controller out of reset */ - ret =hda_dsp_ctrl_link_reset (sdev, false); -if (ret <0 ) { -dev_err (sdev->dev, -"error: failed to ready controller during resume\n" ); -return ret; - } - -/* enable hda bus irq */ -snd_sof_dsp_update_bits (sdev,HDA_DSP_HDA_BAR ,SOF_HDA_INTCTL , -SOF_HDA_INT_CTRL_EN |SOF_HDA_INT_GLOBAL_EN , -SOF_HDA_INT_CTRL_EN |SOF_HDA_INT_GLOBAL_EN ); - -hda_dsp_ctrl_misc_clock_gating (sdev, true); -#endif - -/* enable ppcap interrupt */ -hda_dsp_ctrl_ppcap_enable (sdev, true); -hda_dsp_ctrl_ppcap_int_enable (sdev, true); -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )/* check jack status */ if (runtime_resume)
Signature · 1 line
2.20.1