From: Can Guo <can.guo@oss.qualcomm.com>
To: Bart Van Assche <bvanassche@acm.org>,
krzk@kernel.org, beanhuo@micron.com, peter.wang@mediatek.com,
martin.petersen@oracle.com, mani@kernel.org
Cc: linux-scsi@vger.kernel.org, Alim Akhtar <alim.akhtar@samsung.com>,
Avri Altman <avri.altman@wdc.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>,
Nitin Rawat <quic_nitirawa@quicinc.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v7 2/2] scsi: ufs: core: Add support for static TX Equalization settings
Date: Thu, 11 Jun 2026 09:26:40 +0800 [thread overview]
Message-ID: <3162fd39-c3c6-4c96-a8d1-0a9819a6f696@oss.qualcomm.com> (raw)
In-Reply-To: <9b304461-2672-470a-91bc-21a5e6935205@acm.org>
On 6/11/2026 4:08 AM, Bart Van Assche wrote:
> On 6/10/26 12:15 AM, Can Guo wrote:
>> Parse board-specific static TX Equalization settings from DT for each HS
>> gear and store them in hba->tx_eq_params.
>
> The word "static" means "showing little change". My understanding is
> that the settings from the DT tree are used if equalization training is
> not performed. If my understanding is correct, I think the use of the
> word "static" is misleading. Maybe "default" or "from_dt" reflects the
> purpose of these settings better?
Thanks for your review.
'from_dt' sounds better.
>
>> When adaptive TX Equalization is used, these static settings are not
>> final:
>
> What is the meaning of "adaptive" in the above sentence? I haven't
> found that word in the UFSHCI 5.0 standard nor in the UFS 5.0 standard
> in the
> context of TX equalization. Should that word perhaps be left out?
'adaptive' is not standard term in spec, I used it to refer to on-demand TX
Equalization Training procedure I put up in the first patch series. If it is
confusing, I can remove it from the commit msg.
>
>> + /*
>> + * TX EQTR must run for the following cases:
>> + * 1. TX EQ settings are invalid.
>> + * 2. TX EQ settings are valid but static, i.e., populated from DT.
>> + * 3. TX EQTR procedure is forced.
>> + */
>
> What is the difference between "TX EQ" and "TX EQTR"? If both refer to
> TX equalization, please use the same acronym for all three bullets.
TX EQ is TX Equalization.
TX EQTR is TX Equalization Training.
>
>> params->is_valid = true;
>> + params->is_static = false;
>> }
>
> Why is "is_static" changed into false here? A comment might be
> appropriate.
After TX EQTR procedure, the params is populated with training results,
which are no longer 'from_dt'. I will add some comments in next version.
>
>> + ufshcd_parse_static_tx_eq_settings(hba);
>
> Please consider changing "static" into "default" or "dt" (device tree)
> in the above function name. I think that will make the code easier to
> follow.
Sure, will use 'from_dt'.
Thanks,
Can Guo.
>
> Otherwise this patch looks good to me.
>
> Thanks,
>
> Bart.
next prev parent reply other threads:[~2026-06-11 1:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260610071516.3763916-1-can.guo@oss.qualcomm.com>
2026-06-10 7:15 ` [PATCH v7 1/2] dt-bindings: ufs: Document static TX Equalization settings properties Can Guo
2026-06-11 13:32 ` Krzysztof Kozlowski
2026-06-11 14:14 ` Can Guo
2026-06-10 7:15 ` [PATCH v7 2/2] scsi: ufs: core: Add support for static TX Equalization settings Can Guo
2026-06-10 20:08 ` Bart Van Assche
2026-06-11 1:26 ` Can Guo [this message]
2026-06-11 10:11 ` Peter Wang (王信友)
2026-06-11 14:15 ` Can Guo
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=3162fd39-c3c6-4c96-a8d1-0a9819a6f696@oss.qualcomm.com \
--to=can.guo@oss.qualcomm.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=peter.wang@mediatek.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_rdwivedi@quicinc.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
all inboxes | Powered by JetHome®