* [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval
@ 2024-07-15 15:16 Daniel Baluta (OSS)
2024-07-16 13:26 ` Mark Brown
2024-07-16 13:36 ` Iuliana Prodan
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Baluta (OSS) @ 2024-07-15 15:16 UTC (permalink / raw)
To: linux-sound, broonie
Cc: lgirdwood, peter.ujfalusi, yung-chuan.liao, ranjani.sridharan,
daniel.baluta, kernel, iuliana.prodan, shengjiu.wang,
laurentiu.mihalcea, imx, linux-kernel, Daniel Baluta
From: Daniel Baluta <daniel.baluta@nxp.com>
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.
Fixes: 9ba23717b292 ("ASoC: SOF: imx8m: Implement DSP start")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
sound/soc/sof/imx/imx8m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c
index 1c7019c3cbd38..cdd1e79ef9f6a 100644
--- a/sound/soc/sof/imx/imx8m.c
+++ b/sound/soc/sof/imx/imx8m.c
@@ -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);
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval
2024-07-15 15:16 [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval Daniel Baluta (OSS)
@ 2024-07-16 13:26 ` Mark Brown
2024-07-16 13:36 ` Iuliana Prodan
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-07-16 13:26 UTC (permalink / raw)
To: linux-sound, Daniel Baluta (OSS)
Cc: lgirdwood, peter.ujfalusi, yung-chuan.liao, ranjani.sridharan,
daniel.baluta, kernel, iuliana.prodan, shengjiu.wang,
laurentiu.mihalcea, imx, linux-kernel, Daniel Baluta
On Mon, 15 Jul 2024 18:16:53 +0300, Daniel Baluta (OSS) wrote:
> 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.
>
> [...]
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval
2024-07-15 15:16 [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval Daniel Baluta (OSS)
2024-07-16 13:26 ` Mark Brown
@ 2024-07-16 13:36 ` Iuliana Prodan
1 sibling, 0 replies; 3+ messages in thread
From: Iuliana Prodan @ 2024-07-16 13:36 UTC (permalink / raw)
To: Daniel Baluta (OSS), linux-sound, broonie
Cc: lgirdwood, peter.ujfalusi, yung-chuan.liao, ranjani.sridharan,
daniel.baluta, kernel, shengjiu.wang, laurentiu.mihalcea, imx,
linux-kernel, Daniel Baluta
On 7/15/2024 6:16 PM, Daniel Baluta (OSS) wrote:
> From: Daniel Baluta <daniel.baluta@nxp.com>
>
> 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.
>
> Fixes: 9ba23717b292 ("ASoC: SOF: imx8m: Implement DSP start")
> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Thanks,
Iulia
> ---
> sound/soc/sof/imx/imx8m.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c
> index 1c7019c3cbd38..cdd1e79ef9f6a 100644
> --- a/sound/soc/sof/imx/imx8m.c
> +++ b/sound/soc/sof/imx/imx8m.c
> @@ -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);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-16 13:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-15 15:16 [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval Daniel Baluta (OSS)
2024-07-16 13:26 ` Mark Brown
2024-07-16 13:36 ` Iuliana Prodan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®