From: MANISH PANDEY <quic_mapa@quicinc.com>
To: Bart Van Assche <bvanassche@acm.org>,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: <linux-arm-msm@vger.kernel.org>, <linux-scsi@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <quic_nitirawa@quicinc.com>,
<quic_bhaskarv@quicinc.com>, <quic_rampraka@quicinc.com>,
<quic_cang@quicinc.com>, <quic_nguyenb@quicinc.com>
Subject: Re: [PATCH] ufs: qcom: Add quirks for Samsung UFS devices
Date: Wed, 26 Mar 2025 15:23:30 +0530 [thread overview]
Message-ID: <33c03e94-5e8b-44cf-be32-fb571ca73a17@quicinc.com> (raw)
In-Reply-To: <c0691392-1523-4863-a722-d4f4640e4e28@acm.org>
On 3/25/2025 5:12 PM, Bart Van Assche wrote:
> On 3/25/25 4:38 AM, Manish Pandey wrote:
>> Introduce quirks for Samsung UFS devices to override PA hibern8 time,
>> PA TX HSG1 sync length, and TX_HS_EQUALIZER for the Qualcomm UFS Host
>> controller. These adjustments are essential to maintain the proper
>> functionality of Samsung UFS devices for Qualcomm UFS Host controller.
>
> Which of these quirks are required for all host controllers and which of
> these quirks are only required for Qualcomm host controllers?
>
PA_TX_HSG1_SYNC_LENGTH and PA_TX_DEEMPHASIS_TUNING are specific to the
Qualcomm host controller.
The QUIRK_PA_HIBER8TIME may also be necessary for other SoC vendors host
controllers. For instance, the ufs-exynos.c file implements a similar
approach in the fsd_ufs_post_link() function:
ufshcd_dme_set(hba, UIC_ARG_MIB(0x15A7), max_rx_hibern8_time_cap + 1);
https://lore.kernel.org/lkml/001101d874c1$3d850eb0$b88f2c10$@samsung.com/
Should we consider moving the QUIRK_PA_HIBER8TIME quirk to the ufshcd
driver? Please advise.
>> + equalizer_val = (gear == 5) ? DEEMPHASIS_3_5_dB : NO_DEEMPHASIS;
> > I think that the parenthesis can be removed from the above statement
> without reducing readability of the code.
>
> Thanks,
>
> Bart.
equalizer_val = gear == 5 ? DEEMPHASIS_3_5_dB : NO_DEEMPHASIS;
equalizer_val = (gear == 5) ? DEEMPHASIS_3_5_dB : NO_DEEMPHASIS;
i have used parenthesis for better readability and to make the
conditional expression more explicit.
Thanks
Manish
next prev parent reply other threads:[~2025-03-26 9:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 8:38 [PATCH] ufs: qcom: Add quirks for Samsung UFS devices Manish Pandey
2025-03-25 11:42 ` Bart Van Assche
2025-03-26 9:53 ` MANISH PANDEY [this message]
2025-03-26 10:39 ` Bart Van Assche
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=33c03e94-5e8b-44cf-be32-fb571ca73a17@quicinc.com \
--to=quic_mapa@quicinc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=bvanassche@acm.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=martin.petersen@oracle.com \
--cc=quic_bhaskarv@quicinc.com \
--cc=quic_cang@quicinc.com \
--cc=quic_nguyenb@quicinc.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_rampraka@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