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=1796075855; b=lhllYnq19KRA/z03CCF5m6tvq9aqZcolnqQwBEcmYMebdIlFbaLGHC45n0/jnRp20i4p YiArxi3adIxSYxccd6AOvP3Pwe3irJcxHxcVyqFm8DK+lfgwKp4jo3uVd66eB6IRzo/Hu PQn+e+0VrXue7RodoWOPtsDvzPrN81Um16AYk6EJE6J/P575SN19VvfUGZ/ZCMwoFkowL qjSIvm6g7X1mG5aFmSJuipT3hTHPBVgm0h68Bv/4T0DTWBV3aXZzzB9MCPB7GaQrUVET5 8DG64ke4AESDzaOMwyCwwrYUSLLj47c3xukrgUSPShzSvwfMbDtt8++kuS80Qyt1U5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796075855; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4COVq+/qKQN8hLPExZOibN3yVjC290ef4FV3o9n9Wf0=; b=csIQ/ruuFaQ7ZLsKpSgcX3jzQRLKDrOModYwFar+xi6lkn7xgUBRz+YKQGKwLcuZKK2G TTdWxV0LrjXkkQ/nR3EaTRv3Ny+FhrjL3v8d1F1fadcT26CL/K0P0473GrLpf+Q7jqWi6 HBxHC0ITlw9tSe+DmqHXNE94Rs/w+jh82gfdXfhqmkXeD6HPvEfWC/uvlAjGc0vMc4fmj FXGY5SRgus7yPMHA1XyUgcMXgKmS9YXjl9EKvSa+R6cZ6EVKZ3zq0fZQNPXlgYEzOQiWh +07WJx50CLDbvKz+Hz+F6ni0+TlaZ+bIqvOnTrMHyzcpXSgER3+mfbfgVcBTGXyVbeg== 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=SEviJbqG; 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 778BB606A31A; Mon, 30 Nov 2026 21:57:35 +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=SEviJbqG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B2681F000C1; Mon, 30 Nov 2026 21:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796075855; bh=4COVq+/qKQN8hLPExZOibN3yVjC290ef4FV3o9n9Wf0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=SEviJbqGWeMRJMl7him1YjdHFkpNEzTH+OqHS8EZ03PjJzm2UtQ6CL4maTV8/rkuE a+jfLw8YguTB83qgliegwnvDmAX4UD4RVyZkyw5MjD4OH2OLSPnSWeXbnFrz36Geuz wtvGTylOcywIWvxcmF8hHQCKtrHrcTqE9ZJ3xAEJxv/GAtscHX7bfh3VaRG2NfGPaQ JynkRaQrXk2p6WfePJ+JIB07Cd5KiiBj0aARjYDu4h3yVVoqVfTIImrCwXx3pfbbJS MTT7bW+JIZGlDrnQq5QBsNs+OW9UXpDV88b9VzYrjxYJ33lV49OSrui7+qnxwcvFV4 el3hoBYYjmyMQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 8/9] ASoC: qcom: lpass-tx-macro: Add support for Hawi 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-8-5e56d0ad3810@oss.qualcomm.com> References: <20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com> <20261201-add_shikra_support-v8-8-5e56d0ad3810@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 21:57:34 +0000 X-Mailing-List: devicetree@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 3 potential issues to consider: - [Medium] ASoC: qcom: lpass-tx-macro: missing DAPM routes for RX_SWR_MIC in v15 map - [Low] ASoC: qcom: lpass-tx-macro: mixing __free() with goto in tx_macro_probe() - [Low] ASoC: qcom: lpass-tx-macro: inaccurate REGCACHE_MAPLE and lpr clk changelog -- commit ce335ab4043c37e515899654610f6ccb3e6a7f9d Author: Prasad Kumpatla ASoC: qcom: lpass-tx-macro: Add support for Hawi This commit adds support for the Hawi (Bolero v4.0 / LPASS v15) TX macro, including register defaults, regmap configuration, an optional lpr clock, and v15-specific DAPM widgets and routes. > Use REGCACHE_MAPLE > for the TX macro regmap since the register defaults are sparse and the > v4.0 layout extends the register range. [Severity: Low] This isn't a bug, but tx_regmap_config was already switched to REGCACHE_MAPLE in commit 8ed9306885eb ("ASoC: codecs: lpass-tx-macro: switch cache to REGCACHE_MAPLE") and is not changed here. Meanwhile, the changelog does not mention adding support for the optional "lpr" clock. > diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-t= x-macro.c > index 45dd079683b05..9bb5b792e918e 100644 > --- a/sound/soc/codecs/lpass-tx-macro.c > +++ b/sound/soc/codecs/lpass-tx-macro.c [ ... ] > @@ -2073,6 +2155,418 @@ static const struct snd_soc_dapm_route tx_audio_m= ap_v9_2[] =3D { > {"TX SMIC MUX7", "SWR_MIC11", "TX SWR_INPUT11"}, > }; > =20 > +static const char * const adc_mux_text_v9_3[] =3D { > + "MSM_DMIC", "SWR_MIC", "ANC_FB_TUNE1", "RX_SWR_MIC" > +}; [ ... ] > +static const struct snd_soc_dapm_route tx_audio_map_v15[] =3D { > + /* DEC0 */ > + {"TX DEC0 MUX", "SWR_MIC", "TX SMIC MUX0"}, > + {"TX SMIC MUX0", NULL, "TX_SWR_CLK"}, > + {"TX SMIC MUX0", "SWR_MIC0", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC1", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC2", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC3", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC4", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC5", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC6", "TX WSA MUX0"}, > + {"TX SMIC MUX0", "SWR_MIC7", "TX WSA MUX0"}, > + {"TX WSA MUX0", "NO_WSA", "TX PORT SEL MUX0"}, > + {"TX WSA MUX0", "WSA1", "TX PORT SEL MUX0"}, > + {"TX WSA MUX0", "WSA2", "TX PORT SEL MUX0"}, > + {"TX WSA MUX0", "WSA3", "TX PORT SEL MUX0"}, > + {"TX WSA MUX0", "WSA4", "TX PORT SEL MUX0"}, > + {"TX PORT SEL MUX0", "PORT0", "TX SWR_INPUT"}, > + {"TX PORT SEL MUX0", "PORT1", "TX SWR_INPUT"}, > + {"TX PORT SEL MUX0", "PORT2", "TX SWR_INPUT"}, > + {"TX PORT SEL MUX0", "PORT3", "TX SWR_INPUT"}, > + {"TX PORT SEL MUX0", "PORT4", "TX SWR_INPUT"}, [Severity: Medium] Are DAPM routes for "RX_SWR_MIC" missing from tx_audio_map_v15[] for TX DEC0 MUX through TX DEC7 MUX? adc_mux_text_v9_3[] adds "RX_SWR_MIC" to the v15 decimator muxes, but neither tx_audio_map[] nor tx_audio_map_v15[] connects an input route for that control value. Selecting "RX_SWR_MIC" on any TX DECn MUX leaves the mux without a connected DAPM input path, so the widget never powers up and tx_macro_enable_dec() is never called. [ ... ] > @@ -2296,6 +2803,9 @@ static int tx_macro_probe(struct platform_device *p= dev) > struct device_node *np =3D dev->of_node; > struct tx_macro *tx; > void __iomem *base; > + struct reg_default *reg_defaults __free(kfree) =3D NULL; > + struct regmap_config *reg_config __free(kfree) =3D NULL; > + size_t def_count; > int ret, reg; [ ... ] > - tx->regmap =3D devm_regmap_init_mmio(dev, base, &tx_regmap_config); > + reg_config =3D kmemdup(&tx_regmap_config, sizeof(*reg_config), GFP_KERN= EL); > + if (!reg_config) { > + ret =3D -ENOMEM; > + goto err; > + } [Severity: Low] This isn't a bug, but tx_macro_probe() mixes __free(kfree) variables with goto-based error handling, and declares reg_config as NULL at the top of the function instead of defining and initializing it at its kmemdup() call site. Per the cleanup.h conventions, it is preferred not to mix __free() with goto unwinding in the same function, or to declare __free() variables at their point of initialization when they have function scope. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-add_shikra= _support-v8-0-5e56d0ad3810@oss.qualcomm.com?part=3D8