From: sashiko-bot@kernel.org
To: "Richard Acayan" <mailingradian@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 11/11] arm64: dts: qcom: sdm670-google: add sound card
Date: Sat, 03 Oct 2026 18:11:48 +0000 [thread overview]
Message-ID: <20261003181148.B033E1F0089B@smtp.kernel.org> (raw)
In-Reply-To: <20261003175659.23536-12-mailingradian@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: incorrect routing of 1.536MHz bit clock to AHB interconnect
--
commit dd0eb0dfbca83fed6d11405e093c6017f1613bfc
Author: Richard Acayan <mailingradian@gmail.com>
arm64: dts: qcom: sdm670-google: add sound card
This commit adds devicetree entries for the Pixel 3a sound card. It
configures the WCD codec, q6asm frontends, audio routing, and the
associated clocks for headset audio.
> diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
> index 73639b0271e9b..fadd3b5eca42a 100644
> --- a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
[ ... ]
> @@ -52,6 +53,14 @@ framebuffer: framebuffer@9c000000 {
> };
> };
>
> + clocks {
> + int_cdc_bclk: int-cdc-bclk {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <1536000>;
> + };
> + };
> +
[ ... ]
> @@ -528,6 +618,17 @@ rmi4_f12: rmi4-f12@12 {
> };
> };
>
> +&lpass_codec {
> + clocks = <&int_cdc_bclk>,
> + <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
> + clock-names = "ahbix-clk", "mclk";
[Severity: Medium]
Is it safe to supply a dummy 1.536 MHz bit clock as the AHB interconnect
clock here?
The underlying digital codec driver unconditionally requires the AHB clock
in msm8916_wcd_digital_get_clks():
priv->ahbclk = devm_clk_get(dev, "ahbix-clk");
if (IS_ERR(priv->ahbclk)) {
dev_err(dev, "failed to get ahbix clk\n");
return PTR_ERR(priv->ahbclk);
}
By satisfying "ahbix-clk" with a dummy fixed clock, the hardware state is
misrepresented. The driver will successfully "enable" this dummy clock
and proceed to access registers.
If the actual AHB clock is gated by firmware or another driver, could
this result in register accesses without the bus being clocked,
triggering a bus stall and a synchronous external abort?
> +
> + assigned-clocks = <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
> + assigned-clock-rates = <9600000>;
> +
> + status = "okay";
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261003175659.23536-1-mailingradian@gmail.com?part=11
next prev parent reply other threads:[~2026-10-03 18:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 17:56 [PATCH v2 00/11] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-10-03 17:56 ` [PATCH v2 01/11] dt-bindings: soc: qcom,smp2p: add sleepstate support Richard Acayan
2026-10-03 17:56 ` [PATCH v2 02/11] dt-bindings: mailbox: qcom: Add SDM670 APCS compatible Richard Acayan
2026-10-03 17:56 ` [PATCH v2 03/11] dt-bindings: soc: qcom: aoss: Add compatible for SDM670 Richard Acayan
2026-10-03 17:56 ` [PATCH v2 04/11] dt-bindings: remoteproc: qcom: adsp: Add SDM670 ADSP compatible Richard Acayan
2026-10-03 18:05 ` sashiko-bot
2026-10-09 6:52 ` Krzysztof Kozlowski
2026-10-03 17:56 ` [PATCH v2 05/11] ASoC: dt-bindings: msm8916-digital-codec: Add SDM670 compatible Richard Acayan
2026-10-04 7:55 ` Krzysztof Kozlowski
2026-10-03 17:56 ` [PATCH v2 06/11] remoteproc: qcom: pas: Add SDM670 ADSP support Richard Acayan
2026-10-03 17:56 ` [PATCH v2 07/11] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-10-03 18:08 ` sashiko-bot
2026-10-03 17:56 ` [PATCH v2 08/11] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-10-03 17:56 ` [PATCH v2 09/11] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-10-03 18:06 ` sashiko-bot
2026-10-03 17:56 ` [PATCH v2 10/11] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-10-03 17:56 ` [PATCH v2 11/11] arm64: dts: qcom: sdm670-google: add sound card Richard Acayan
2026-10-03 18:11 ` sashiko-bot [this message]
2026-10-07 11:05 ` (subset) [PATCH v2 00/11] ADSP for SDM670 and sound on Google Pixel 3a Mark Brown
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=20261003181148.B033E1F0089B@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=mailingradian@gmail.com \
--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