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=1796404087; b=S4qzPxkqJFri5j7ZEEzo31KkRrCRg0Bra2t17zPEYdojy50xHwBhB9yc7Tr+b7Rkj7MS hEUd7egYmo4t7pNpsuXBRVc3apSsAS0Sfgm1XLSJma8FEPwsfPnqsmeCWwUhRuuRY7iPA oVMwSPgOT2qkV5aWSAgS1dMB75gHZO2lxe2WKRgdkjOBvWqeRCTpMhAmhmJ9hh37mbl29 r/PMnHFeWKCSn54eUlYg5RXl59lfRDbV4TsbqTN1I+lZSL+n3sr6RgDLgvV3+LpWvWhrz rlxpAXLwp9A35PoWw6z1huy6MFC7SGTGxI4I3NiBCbffLbMOV2rrEIU6iLMD0Vdu0+g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404087; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IOLubUo2mZcbaFjYPFcFA+uzf9eQSbNi42i+znubfvM=; b=BD3HXIh95iVUJRlMSEX6iSElZMzFbBVyExiVYcqBv3Q2Sq7mEI0ArsmVMt9zS02qP+3n 8AfQ8/CdfyZLDuUPawiGqioDlRr23PhcitS8iBDuja1l+CCQ63iSQqUEFb1LxFjAT/tT3 ReqxxXaKJGzIMEX2Lqs2qiPuykbI3wK4V2ixMUdV8Jl7dGkZupcpL2Ewhn+ksidvjSA9w 01/x+60xpvtwRRk9/C4muvjUtzJK3Hox4joaEmgZXQGSATCvsCBzz7jAmOimsKhNaaDLI NokLQFPhv3Mcw+1SUXvawZRdWSlf/2GQgHQU2psC7O+y0/jxpLLnVFyDF3Osa96dmIw== 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=SeWWW2y0; 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 A7B09606A339; Fri, 4 Dec 2026 17:08:07 +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=SeWWW2y0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25EC71F00A11; Fri, 4 Dec 2026 17:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796404087; bh=IOLubUo2mZcbaFjYPFcFA+uzf9eQSbNi42i+znubfvM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=SeWWW2y0wvkGTqoDcHj+9LIQYZqR9Ne9ggcLjcvMDkrLndaYFc6fEScZID0wvc5Vf 227/R3A73bxSnVVfWim3tqRC3DDSv778AmhkFCATbHb0DMEVkqDmIaAo4NpJvpkZMi OjBbkkkpJDpGbgyysSYmOouHlzQKOrDiFuVmQlY8Q924XW1saWBzaZiVo9/aO96VML o6R84P+xhaC2eTNdGVA8dG0xKMWneDjTHZ8zH1OYP6uEOdiIIJlJFb9JBw8g9/47c2 osb/14biEDzqZ4I99iLJzUY2/fiAwBFVp3EIFunqdPh0N3n/fbdoh7fi9boJjNH0+a ZNKTP4WMfwPlA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 14/19] ASoC: qcom: lpass: support LPM memory type for I2S LPAIFs Reply-To: sashiko-reviews@lists.linux.dev To: "Neil Armstrong" Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-topic-sm8650-el2-v3-14-8384ef0ac751@linaro.org> References: <20261204-topic-sm8650-el2-v3-0-8384ef0ac751@linaro.org> <20261204-topic-sm8650-el2-v3-14-8384ef0ac751@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:08:06 +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: duplicate MI2S DAI ID switch in is_lpm_mi2s_port() -- commit 7c76ec9c8122717240b213ce7bf7296a867709a0 Author: Neil Armstrong ASoC: qcom: lpass: support LPM memory type for I2S LPAIFs This commit adds an lpm_type field to struct lpaif_mi2s_desc, stores it per MI2S port in struct lpass_data during probe, and adds the is_lpm_mi2s_port() helper. > diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h > index 70d64bf3f0737..71f1274dfa892 100644 > --- a/sound/soc/qcom/lpass.h > +++ b/sound/soc/qcom/lpass.h [ ... ] > @@ -261,6 +269,19 @@ struct lpass_data { > struct lpass_sstream_ctl *sstream_ctl; > }; > =20 > +static inline bool is_lpm_mi2s_port(struct lpass_data *drvdata, unsigned= int dai_id) > +{ > + unsigned int port_id; > + > + switch (dai_id) { > + case MI2S_PRIMARY ... MI2S_QUINARY: > + case MI2S_SENARY ... MI2S_SEPTENARY: > + port_id =3D mi2s_port_id(dai_id); > + return drvdata->mi2s_lpm[port_id] !=3D LPASS_LPM_NONE; > + } > + return false; > +} [Severity: Low] Can is_lpm_mi2s_port() reuse is_mi2s_port_id(dai_id) instead of duplicating the MI2S DAI ID switch cases? sound/soc/qcom/lpass.h already defines is_mi2s_port_id(int dai_id) with the same MI2S_PRIMARY..MI2S_QUINARY and MI2S_SENARY..MI2S_SEPTENARY ranges, so calling it avoids keeping two copies of those ranges in sync. Taking int dai_id would also match is_mi2s_port_id() and mi2s_port_id(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-topic-sm86= 50-el2-v3-0-8384ef0ac751@linaro.org?part=3D14