From: sashiko-bot@kernel.org
To: "Neil Armstrong" <neil.armstrong@linaro.org>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 13/19] ASoC: qcom: lpass: support mapping I2S ports to multiple LPAIFs
Date: Fri, 04 Dec 2026 17:10:55 +0000 [thread overview]
Message-ID: <sashiko-outbox-250270@kernel.org> (raw)
In-Reply-To: <20261204-topic-sm8650-el2-v3-13-8384ef0ac751@linaro.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ASoC: qcom: lpass: unconditional RXTX/VA mapping conflicts with
MI2S LPAIFs
--
commit 1fdcb9a0baa93e845c8500569ac8ec46f6dbb9c0
Author: Neil Armstrong <neil.armstrong@linaro.org>
ASoC: qcom: lpass: support mapping I2S ports to multiple LPAIFs
This commit adds an optional mi2s_desc layout table to struct lpass_variant
so MI2S ports can be mapped across multiple LPAIF instances, probing only
the LPAIFs that have a port described in DT.
> diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
> index b4620fc99e264..902ad65545108 100644
> --- a/sound/soc/qcom/lpass-cpu.c
> +++ b/sound/soc/qcom/lpass-cpu.c
[ ... ]
> @@ -1340,11 +1369,25 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
> drvdata->va_cdc_dma_lpm_buf = res->start;
> }
>
> - drvdata->num_lpaif = 1;
> + if (variant->mi2s_desc) {
> + if (variant->num_mi2s_desc > LPASS_MAX_LPAIF)
> + return -EINVAL;
> +
> + drvdata->num_lpaif = variant->num_mi2s_desc;
>
> - ret = lpass_cpu_init_lpaif(pdev, 0, "lpass-lpaif");
> - if (ret)
> - return ret;
> + for (i = 0; i < variant->num_mi2s_desc; i++) {
> + ret = lpass_cpu_init_lpaif(pdev, i,
> + variant->mi2s_desc[i].reg_name);
> + if (ret)
> + return ret;
> + }
> + } else {
[Severity: High]
Can lpass_cpu_init_lpaif() fail with -EBUSY when DT combines a Codec DMA
port on one LPAIF with an MI2S port on another?
In of_lpass_cpu_parse_dai_data(), any RXTX, VA, or WSA Codec DMA child node
sets codec_dma_enable, while only WSA has its own enable flag (wsa_enable).
Earlier in asoc_qcom_lpass_cpu_platform_probe(), codec_dma_enable claims
both lpass-rxtx-lpaif and lpass-va-lpaif unconditionally.
If a board uses Codec DMA on one LPAIF (such as RXTX or WSA) alongside an
MI2S port on lpass-va-lpaif (or lpass-rxtx-lpaif), lpass_cpu_init_lpaif()
requests the same MMIO region a second time and fails probe with -EBUSY.
asoc_qcom_lpass_platform_register() hits the same -EBUSY conflict on IRQ
registration, because the codec_dma_enable block unconditionally requests
both lpass-irq-rxtxif and lpass-irq-vaif without IRQF_SHARED after
lpass_platform_init_lpaif() has requested the MI2S LPAIF IRQ.
Gating RXTX and VA LPAIF MMIO, regmap, IRQ, and dmactl initialization on
per-interface enable flags like wsa_enable would avoid both conflicts.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-topic-sm8650-el2-v3-0-8384ef0ac751@linaro.org?part=13
next prev parent reply other threads:[~2026-12-04 17:10 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 15:53 [PATCH v3 00/19] arm64: qcom: enable SM8650 audio without ADSP firmware Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 01/19] ASoC: qcom: lpass-cpu: fix RXTX WRDMA current address register readability Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 02/19] ASoC: qcom: lpass-platform: disable the RXTX & VA DMA interrupts on stop Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 03/19] ASoC: dt-bindings: qcom,lpass: add Senary & Septenary MI2S ids Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 04/19] ASoC: dt-bindings: qcom,lpass: add WSA RX and TX channels ids Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 05/19] ASoC: dt-bindings: qcom,lpass-*-macro: document less clock when ADSP is not used Neil Armstrong
2026-12-04 16:20 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 06/19] ASoC: dt-bindings: qcom,lpass-cpu: document the SM8650 LPASS Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 07/19] ASoC: codecs: lpass-wsa-macro: handle the macro & dcodec power domains Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 08/19] ASoC: qcom: lpass-cpu: get the optional codec_mem3 clock Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 09/19] ASoC: qcom: lpass: add support for optional WSA interface Neil Armstrong
2026-12-04 16:49 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 10/19] ASoC: qcom: lpass-cdc-dma: add support for WSA codec DMA Neil Armstrong
2026-12-04 16:47 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 11/19] ASoC: qcom: lpass: prepare to handle multiple lpaifs for i2s Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 12/19] ASoC: qcom: lpass: add support for MI2S_SENARY & MI2S_SEPTENARY Neil Armstrong
2026-12-04 15:53 ` [PATCH v3 13/19] ASoC: qcom: lpass: support mapping I2S ports to multiple LPAIFs Neil Armstrong
2026-12-04 17:10 ` sashiko-bot [this message]
2026-12-04 15:53 ` [PATCH v3 14/19] ASoC: qcom: lpass: support LPM memory type for I2S LPAIFs Neil Armstrong
2026-12-04 17:08 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 15/19] ASoC: qcom: lpass: allocate LPM buffer memory to DAIs Neil Armstrong
2026-12-04 17:33 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 16/19] ASoC: qcom: lpass: enable the right codec_mem clock when usin LPM memory Neil Armstrong
2026-12-04 17:28 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 17/19] ASoC: qcom: add SM8650 LPASS CPU driver Neil Armstrong
2026-12-04 17:42 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 18/19] ASoC: qcom: sdw: allow LPASS_CDC_DMA_WSA_RX0 as soundwire dai Neil Armstrong
2026-12-04 17:52 ` sashiko-bot
2026-12-04 15:53 ` [PATCH v3 19/19] ASoC: qcom: sc8280xp: allow using the sc8280xp card with lpass-cpu Neil Armstrong
2026-12-04 17:54 ` sashiko-bot
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=sashiko-outbox-250270@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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