From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
srinivas.kandagatla@linaro.org, robh+dt@kernel.org,
krzk+dt@kernel.org, alsa-devel@alsa-project.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 1/2] ASoC: qcom: lpass: Fix apq8016 compat string to match yaml
Date: Mon, 27 Jun 2022 15:40:22 -0500 [thread overview]
Message-ID: <YroVtj4zXXcHygxD@builder.lan> (raw)
In-Reply-To: <20220429220349.1142759-2-bryan.odonoghue@linaro.org>
On Fri 29 Apr 17:03 CDT 2022, Bryan O'Donoghue wrote:
Adding the sound maintainers to To/Cc, please advice if you would prefer
Bryan to resubmit the patch with proper recipients.
> The documented yaml compat string for the apq8016 is
> "qcom,apq8016-lpass-cpu" not "qcom,lpass-cpu-apq8016". Looking at the other
> lpass compat strings the general form is "qcom,socnum-lpass-cpu".
>
> We need to fix both the driver and dts to match.
>
> Fixes: dc1ebd1811e9 ("ASoC: qcom: Add apq8016 lpass driver support")
> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Once this patch is picked up I can merge the dts change.
Regards,
Bjorn
> ---
> sound/soc/qcom/lpass-apq8016.c | 1 +
> sound/soc/qcom/lpass-cpu.c | 5 +++++
> 2 files changed, 6 insertions(+)
>
> diff --git a/sound/soc/qcom/lpass-apq8016.c b/sound/soc/qcom/lpass-apq8016.c
> index 3efa133d1c64..abaf694ee9a3 100644
> --- a/sound/soc/qcom/lpass-apq8016.c
> +++ b/sound/soc/qcom/lpass-apq8016.c
> @@ -293,6 +293,7 @@ static struct lpass_variant apq8016_data = {
>
> static const struct of_device_id apq8016_lpass_cpu_device_id[] __maybe_unused = {
> { .compatible = "qcom,lpass-cpu-apq8016", .data = &apq8016_data },
> + { .compatible = "qcom,apq8016-lpass-cpu", .data = &apq8016_data },
> {}
> };
> MODULE_DEVICE_TABLE(of, apq8016_lpass_cpu_device_id);
> diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
> index e6846ad2b5fa..53f9bf6581d3 100644
> --- a/sound/soc/qcom/lpass-cpu.c
> +++ b/sound/soc/qcom/lpass-cpu.c
> @@ -1102,6 +1102,11 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
> if (!match || !match->data)
> return -EINVAL;
>
> + if (of_device_is_compatible(dev->of_node, "qcom,lpass-cpu-apq8016")) {
> + dev_warn(dev, "%s compatible is deprecated\n",
> + match->compatible);
> + }
> +
> drvdata->variant = (struct lpass_variant *)match->data;
> variant = drvdata->variant;
>
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-06-27 20:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 22:03 [PATCH v3 0/2] Fix apq8016 compat string Bryan O'Donoghue
2022-04-29 22:03 ` [PATCH v3 1/2] ASoC: qcom: lpass: Fix apq8016 compat string to match yaml Bryan O'Donoghue
2022-06-27 20:40 ` Bjorn Andersson [this message]
2022-06-27 22:24 ` Mark Brown
2022-04-29 22:03 ` [PATCH v3 2/2] arm64: dts: qcom: " Bryan O'Donoghue
2022-05-25 13:02 ` [PATCH v3 0/2] Fix apq8016 compat string Bryan O'Donoghue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YroVtj4zXXcHygxD@builder.lan \
--to=bjorn.andersson@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).