From: sashiko-bot@kernel.org
To: "Mohammad Rafi Shaik" <mohammad.rafi.shaik@oss.qualcomm.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 4/9] ASoC: qcom: lpass-va-macro: Add shikra compatible
Date: Mon, 30 Nov 2026 21:46:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-242040@kernel.org> (raw)
In-Reply-To: <20261201-add_shikra_support-v8-4-5e56d0ad3810@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: qcom: lpass-va-macro: mixing __free(kfree) with goto in
va_macro_probe()
--
commit 5fbeb88fe7f6c664da8d414fbc89c3b2874f22f0
Author: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
ASoC: qcom: lpass-va-macro: Add shikra compatible
This commit adds shikra VA macro match data and LPASS codec v4.0 adaptive
filter (ADPT) register defaults, and syncs the decimator input muxes a
second time on MCLK enable.
> diff --git a/sound/soc/codecs/lpass-va-macro.c b/sound/soc/codecs/lpass-va-macro.c
> index eb8c07be92bb3..399468ebea0bf 100644
> --- a/sound/soc/codecs/lpass-va-macro.c
> +++ b/sound/soc/codecs/lpass-va-macro.c
[ ... ]
> @@ -1577,9 +1761,12 @@ static int va_macro_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> const struct va_macro_data *data;
> + struct reg_default *reg_defaults __free(kfree) = NULL;
> + struct regmap_config *reg_config __free(kfree) = NULL;
> struct va_macro *va;
> void __iomem *base;
> u32 sample_rate = 0;
> + size_t def_count;
> int ret;
> int rpm_ret;
>
> @@ -1588,6 +1775,7 @@ static int va_macro_probe(struct platform_device *pdev)
> return -ENOMEM;
>
> va->dev = dev;
> + data = of_device_get_match_data(dev);
>
> va->macro = devm_clk_get_optional(dev, "macro");
> if (IS_ERR(va->macro))
> @@ -1624,17 +1812,42 @@ static int va_macro_probe(struct platform_device *pdev)
> goto err;
> }
>
> - va->regmap = devm_regmap_init_mmio(dev, base, &va_regmap_config);
> - if (IS_ERR(va->regmap)) {
> - ret = -EINVAL;
> + reg_config = kmemdup(&va_regmap_config, sizeof(*reg_config), GFP_KERNEL);
> + if (!reg_config) {
> + ret = -ENOMEM;
> goto err;
> }
[Severity: Low]
This isn't a bug, but va_macro_probe() mixes __free(kfree) with goto-based
error handling and declares reg_config = NULL at the top of the function
rather than defining and initializing it in a single statement, contrary
to the kernel Cleanup API conventions in include/linux/cleanup.h.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com?part=4
next prev parent reply other threads:[~2026-11-30 21:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 21:33 [PATCH v8 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 1/9] ASoC: dt-bindings: qcom: Add Shikra RX and VA macro codecs Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 2/9] ASoC: qcom: lpass-macro-common: Add missing v2.9 version string Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 3/9] ASoC: qcom: lpass-rx-macro: Add shikra compatible Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 4/9] ASoC: qcom: lpass-va-macro: " Mohammad Rafi Shaik
2026-11-30 21:46 ` sashiko-bot [this message]
2026-11-30 21:34 ` [PATCH v8 5/9] ASoC: qcom: lpass-va-macro: Add SoundWire microphone support Mohammad Rafi Shaik
2026-11-30 21:47 ` sashiko-bot
2026-11-30 21:34 ` [PATCH v8 6/9] ASoC: dt-bindings: qcom: Add Hawi LPASS macro codecs Mohammad Rafi Shaik
2026-11-30 21:34 ` [PATCH v8 7/9] ASoC: dt-bindings: qcom: Add Maili " Mohammad Rafi Shaik
2026-11-30 21:34 ` [PATCH v8 8/9] ASoC: qcom: lpass-tx-macro: Add support for Hawi Mohammad Rafi Shaik
2026-11-30 21:57 ` sashiko-bot
2026-11-30 21:34 ` [PATCH v8 9/9] ASoC: qcom: lpass: " Mohammad Rafi Shaik
2026-12-01 6:51 ` [PATCH v8 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support Ravi Hothi
2026-12-01 17:58 ` Ajay Kumar Nandam
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-242040@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mohammad.rafi.shaik@oss.qualcomm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.