ASoC: SOF: imx8m: Fix DSP control regmap retrieval
PATCH 1/1 ASoC: SOF: imx8m: Fix DSP control regmap retrieval
From: Daniel Baluta <[email protected]>
According to Documentation/devicetree/bindings/dsp/fsl,dsp.yaml fsl,dsp-ctrl is a phandle to syscon block so we need to use correct function to retrieve it.
Currently there is no SOF DSP DTS merged into mainline so there is no need to support the old way of retrieving the dsp control node.
--- sound/soc/sof/imx/imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sof/imx/imx8m.c +1 -1
@@ -234,7 +234,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev)/* set default mailbox offset for FW ready message */ sdev->dsp_box.offset =MBOX_OFFSET ; - priv->regmap =syscon_regmap_lookup_by_compatible ("fsl,dsp-ctrl" ); + priv->regmap =syscon_regmap_lookup_by_phandle (np,"fsl,dsp-ctrl" );if (IS_ERR (priv->regmap)) {dev_err (sdev->dev,"cannot find dsp-ctrl registers" ); ret =PTR_ERR (priv->regmap);
Signature · 1 line
2.25.1
Mark Brown
maintainerQuoted 8 lines · Daniel Baluta (OSS)
According to
Documentation/devicetree/bindings/dsp/fsl,dsp.yamlfsl,dsp-ctrl is a phandle to syscon block so we need to use correct function to retrieve it.Currently there is no SOF DSP DTS merged into mainline so there is no need to support the old way of retrieving the dsp control node.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: imx8m: Fix DSP control regmap retrieval
commit: 2634f745eac25a33f032df32cf98fca8538a534a
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 11 lines · Daniel Baluta (OSS)
From: Daniel Baluta <[email protected]>
According to
Documentation/devicetree/bindings/dsp/fsl,dsp.yamlfsl,dsp-ctrl is a phandle to syscon block so we need to use correct function to retrieve it.Currently there is no SOF DSP DTS merged into mainline so there is no need to support the old way of retrieving the dsp control node.
Fixes 9ba23717b292 ("ASoC: SOF: imx8m: Implement DSP start")Signed-off-by Daniel Baluta <[email protected]>
Thanks,
Iulia
Quoted 17 lines
--- sound/soc/sof/imx/imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/sof/imx/imx8m.c +1
-1@@ -234,7 +234,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev)/* set default mailbox offset for FW ready message */ sdev->dsp_box.offset =MBOX_OFFSET ; - priv->regmap =syscon_regmap_lookup_by_compatible ("fsl,dsp-ctrl" ); + priv->regmap =syscon_regmap_lookup_by_phandle (np,"fsl,dsp-ctrl" );if (IS_ERR (priv->regmap)) {dev_err (sdev->dev,"cannot find dsp-ctrl registers" ); ret =PTR_ERR (priv->regmap);