[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f6d9b03d-3870-494d-b97f-b0487927c9d3@oss.qualcomm.com>
Date: Fri, 2 May 2025 15:41:19 +0200
From: Konrad Dybcio <konrad.dybcio@....qualcomm.com>
To: Mrinmay Sarkar <mrinmay.sarkar@....qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
Cc: Vinod Koul <vkoul@...nel.org>, Kishon Vijay Abraham I
<kishon@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley
<conor+dt@...nel.org>, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-phy@...ts.infradead.org,
devicetree@...r.kernel.org, krishna.chundru@....qualcomm.com,
quic_vbadigan@...cinc.com, quic_nayiluri@...cinc.com,
quic_ramkri@...cinc.com, quic_nitegupt@...cinc.com
Subject: Re: [PATCH 1/2] phy: qcom: qmp-pcie: Update PHY settings for SA8775P
On 5/2/25 2:25 PM, Mrinmay Sarkar wrote:
> On Wed, Apr 23, 2025 at 7:07 PM Dmitry Baryshkov <
> dmitry.baryshkov@....qualcomm.com> wrote:
>
>> On Wed, Apr 23, 2025 at 04:45:43PM +0530, Mrinmay Sarkar wrote:
>>> This change updates the PHY settings to align with the latest
>>> PCIe PHY Hardware Programming Guide for both PCIe controllers
>>> on the SA8775P platform.
>>
>> Please read Documentation/process/submitting-patches.rst, look for
>> '[This patch] makes xyzzy'.
>>
>>>
>>> Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@....qualcomm.com>
>>> ---
>>> drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 89
>> ++++++++++++----------
>>> drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h | 2 +
>>> drivers/phy/qualcomm/phy-qcom-qmp-pcs-v5_20.h | 4 +
>>> .../phy/qualcomm/phy-qcom-qmp-qserdes-ln-shrd-v5.h | 11 +++
>>> drivers/phy/qualcomm/phy-qcom-qmp.h | 1 +
>>> 5 files changed, 66 insertions(+), 41 deletions(-)
>>>
>>> @@ -3191,6 +3194,7 @@ static const struct qmp_pcie_offsets
>> qmp_pcie_offsets_v5_20 = {
>>> .rx = 0x0200,
>>> .tx2 = 0x0800,
>>> .rx2 = 0x0a00,
>>> + .ln_shrd = 0x0e00,
>>> };
>>
>> This does more than just updating PHY sequences. ln_shrd-related changes
>> should go into a separate commit.
>>
>> Hi Dmitry,
> thanks for the review.
> Actually in the previous phy version there was no ln_shrd related
> register write.
> and only one ln_shrd related register write introduced to the latest
> phy version.
> so introduce added ln_shrd with phy update.
>
> I will add a separate change for ln_shrd.
I think it's fine to change them both in a single commit, but you should
explain in the commit message that previously no writes have been made
to that region simply because none were deemed necessary.
Splitting that into two commits will give us an unpredictable programming
of the PHY, where not all parameters are in sync.
Unless that separate commit would be just adding the offset data, but I
think that's form over function really
Konrad
Powered by blists - more mailing lists