From: sashiko-bot@kernel.org
To: "Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 1/8] ASoC: SDCA: allow building without ACPI
Date: Fri, 18 Sep 2026 13:42:19 +0000 [thread overview]
Message-ID: <20260918134219.F23A61F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918131914.681588-2-srinivas.kandagatla@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] ASoC: SDCA: ACPI parser is unconditionally built on non-ACPI platforms
--
commit b342382e9b5b09b26bd417be9cd5ee4c2d90de61
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
ASoC: SDCA: allow building without ACPI
This commit drops the ACPI dependency from SND_SOC_SDCA to allow the SDCA
class driver to be built on non-ACPI platforms. It wraps ACPI-parsing
implementations in sdca_device.c and sdca_functions.c with
IS_ENABLED(CONFIG_ACPI) and provides empty stubs when ACPI is off.
> diff --git a/sound/soc/sdca/Kconfig b/sound/soc/sdca/Kconfig
> index 4c0dcb9ff3b94..72c02943c49ed 100644
> --- a/sound/soc/sdca/Kconfig
> +++ b/sound/soc/sdca/Kconfig
> @@ -3,11 +3,13 @@ menu "SoundWire (SDCA)"
>
> config SND_SOC_SDCA
> tristate "SDCA core support"
> - depends on ACPI
> select AUXILIARY_BUS
> help
> This option enables support for the MIPI SoundWire Device
> - Class for Audio (SDCA).
> + Class for Audio (SDCA). The ACPI/DisCo topology parser is
> + only built when CONFIG_ACPI is enabled; on non-ACPI platforms
> + (e.g. ARM/DT) codec drivers supply the SDCA function data
> + via sdca_class_hw_ops.populate_function.
[Severity: Medium]
Is this Kconfig help text accurate for SND_SOC_SDCA?
The text claims the ACPI/DisCo topology parser is only built when CONFIG_ACPI
is enabled. However, the CONFIG_ACPI guard in sdca_functions.c is closed
early. When building the kernel with CONFIG_SND_SOC_SDCA=y and CONFIG_ACPI=n,
the rest of the file's DisCo parsing logic is unconditionally compiled.
Note that the related probe failure where sdca_parse_function() was
unconditionally called on non-ACPI platforms is resolved in Patch 4 of this
series, but the dead code and Kconfig discrepancy remains unfixed here.
[ ... ]
> diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c
> index f39008ac0e7d3..1eb6418e132dc 100644
> --- a/sound/soc/sdca/sdca_functions.c
> +++ b/sound/soc/sdca/sdca_functions.c
> @@ -25,6 +25,7 @@
> */
> #define SDCA_PROPERTY_LENGTH 64
>
> +#if IS_ENABLED(CONFIG_ACPI)
> static int patch_sdca_function_type(u32 interface_revision, u32 *function_type)
> {
> /*
> @@ -201,6 +202,7 @@ void sdca_lookup_functions(struct sdw_slave *slave)
> acpi_dev_for_each_child(adev, find_sdca_function, &slave->sdca_data);
> }
> EXPORT_SYMBOL_NS(sdca_lookup_functions, "SND_SOC_SDCA");
> +#endif
[Severity: Medium]
Does this #endif prematurely close the CONFIG_ACPI guard?
By closing the guard here after sdca_lookup_functions(), the remaining
topology parser logic in this file, including the entry point
sdca_parse_function() and its helpers, remains unconditionally compiled
on non-ACPI builds.
>
> struct raw_init_write {
> __le32 addr;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260918131914.681588-1-srinivas.kandagatla@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-09-18 13:42 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 13:19 [PATCH v4 0/8] ASoC: Qualcomm Tambora (WCD9378) SDCA codec Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 1/8] ASoC: SDCA: allow building without ACPI Srinivas Kandagatla
2026-09-18 13:42 ` sashiko-bot [this message]
2026-09-25 15:15 ` Srinivas Kandagatla
2026-09-22 13:32 ` Mark Brown
2026-09-23 8:15 ` Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 2/8] ASoC: SDCA: export PM helpers keyed on sdca_class_drv Srinivas Kandagatla
2026-09-18 13:49 ` sashiko-bot
2026-09-25 15:11 ` Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 3/8] ASoC: SDCA: expose class SoundWire probe/remove as library Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 4/8] ASoC: SDCA: add class_ops with populate_function Srinivas Kandagatla
2026-09-18 14:08 ` sashiko-bot
2026-09-25 15:09 ` Srinivas Kandagatla
2026-09-18 14:15 ` Charles Keepax
2026-09-18 13:19 ` [PATCH v4 5/8] ASoC: SDCA: class_function: xlate sound-dai cell by entity index Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 6/8] ASoC: SDCA: add sdca_apply_default_control_classifiers() helper Srinivas Kandagatla
2026-09-18 14:16 ` Charles Keepax
2026-09-18 14:20 ` Srinivas Kandagatla
2026-09-18 13:19 ` [PATCH v4 7/8] dt-bindings: sound: qcom: add Tambora WCD9378 SDCA codec Srinivas Kandagatla
2026-09-18 13:51 ` Mark Brown
2026-09-23 8:05 ` Krzysztof Kozlowski
2026-09-18 13:19 ` [PATCH v4 8/8] ASoC: codecs: add Qualcomm Tambora (WCD9378) " Srinivas Kandagatla
2026-09-18 14:28 ` Charles Keepax
2026-09-18 14:37 ` 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=20260918134219.F23A61F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=srinivas.kandagatla@oss.qualcomm.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