From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796075211; b=fLThNZ4EWg5GK1R6HucJi+CpUzZLzlh9AzQgWVUUpRq1FloTlnAwtsmoWy98UNF19nER P1wiIInxZTjJyhIPTVedbzrvMAsjcTQzHcufcrIjWDwNYMrBrQXyxH42EdO7+o70pywz3 1uXkaeqP4vkBj2G+V4s9QsEArc2F2BN4u89mu2gHEyXVEqQwj+joMhWBxjkCfCVTGSpiC 3jDiYgLg30/hCp7W5lJly6poPezZkhQJxIC0LiZcWL2EiIo0X/rLvUJcKXWa4bx6entVT 4kG/9L3AWGkiac0mCv+VeVsQDbDJ1WVF28Ljx/GBUnmGDKivDE7POSPD4tMOhWpfv+g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796075211; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=X/wYy0CP6wCIYcPq9XnFxklYaAFF2u9Mxbykp6S9yog=; b=YiOQ2fEde/4sqEq9VV+C6i23XksT50iMS2VIe4Tftof/aziZK2iwFK7B/bYUzGUsOB8y dYvGTRNpR/TjgdPMQjyWT7LpawNyKry94N4iQLVW7sYHXp3itNy9+c+m8ajJ+Fdgw2xbU 36B7TISmy8zBNXv5NeU3iyhU1wXl9SRO0t1GdrQgVz+HsOZ254XB1SEtakxsTFRWXWT3m L95JfT15WOezfQ5R9Qna1czpITl9fybzJAF/OXxLJYlAWQp6WHVg3FKLnK/ISFBlAYEzV sjfh/8gysjQAvX25mZffHqdM+N8uI/Qa7W7F4YB7MYjTIS9mjgLTAJM1tBQmC3VJm4A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PWvwaVOV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A701606A32C; Mon, 30 Nov 2026 21:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PWvwaVOV Received: by smtp.kernel.org (Postfix) with ESMTPSA id B45161F00927; Mon, 30 Nov 2026 21:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796075211; bh=X/wYy0CP6wCIYcPq9XnFxklYaAFF2u9Mxbykp6S9yog=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=PWvwaVOVeRbW9YHZ0ELLHaqo1tdP0p6xxant0mCENSnRmVNNQ78jKLR772R/kwJpG heYQ6L/IqoL5SycbgBBtfmLFg8rXJlP+CT42J5zlBk6eraMeg88czWr9tojcKGni9h Q7Tf0Ojc24p5uDP42rUmX13PKzdO1m6UDmTI4imuIgU/Cj58tH7z/VFk6PHW1XVK7Y SznK+ljoxu89/WE40/ou8VGcw19BRRfgEfdboDNCzSI6qHjKgd8JC46VNVw2iIRRI9 s7HXgHNiP4Utbxuc7ERKCFW9nAQyamlO9+spM7PDrbAo/HzJNQ3cyulE7Yxm47yeYY w5ofXmqgP1xxw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 4/9] ASoC: qcom: lpass-va-macro: Add shikra compatible Reply-To: sashiko-reviews@lists.linux.dev To: "Mohammad Rafi Shaik" Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-add_shikra_support-v8-4-5e56d0ad3810@oss.qualcomm.com> References: <20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com> <20261201-add_shikra_support-v8-4-5e56d0ad3810@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 21:46:50 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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-v= a-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 =3D &pdev->dev; > const struct va_macro_data *data; > + struct reg_default *reg_defaults __free(kfree) =3D NULL; > + struct regmap_config *reg_config __free(kfree) =3D NULL; > struct va_macro *va; > void __iomem *base; > u32 sample_rate =3D 0; > + size_t def_count; > int ret; > int rpm_ret; > =20 > @@ -1588,6 +1775,7 @@ static int va_macro_probe(struct platform_device *p= dev) > return -ENOMEM; > =20 > va->dev =3D dev; > + data =3D of_device_get_match_data(dev); > =20 > va->macro =3D 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; > } > =20 > - va->regmap =3D devm_regmap_init_mmio(dev, base, &va_regmap_config); > - if (IS_ERR(va->regmap)) { > - ret =3D -EINVAL; > + reg_config =3D kmemdup(&va_regmap_config, sizeof(*reg_config), GFP_KERN= EL); > + if (!reg_config) { > + ret =3D -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 =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-add_shikra= _support-v8-0-5e56d0ad3810@oss.qualcomm.com?part=3D4