Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
To: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Cc: Vinod Koul <vkoul@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/5] phy: qcom: sgmii-eth: rename QMP v5 initialization functions
Date: Fri, 4 Dec 2026 11:57:35 +0100	[thread overview]
Message-ID: <axKcn6huVSkIETqF@lore-desk> (raw)
In-Reply-To: <20261202-nord_ethernet_serdes-v2-2-95bb41a719c7@oss.qualcomm.com>


[-- Attachment #1.1: Type: text/plain, Size: 2282 bytes --]

> The existing 1G and 2.5G initialization sequences program QMP v5 registers.
> Add the v5 generation to their names before introducing the QMP v7
> sequence. Update their call sites without changing register programming
> or mode selection.
> 
> No functional change intended. This is purely a cosmetic change to
> prepare for the addition of v7 initialization functions.
> 
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>

Reviewed-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>

> ---
>  drivers/phy/qualcomm/phy-qcom-sgmii-eth.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c b/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
> index 04fc3e80b496..196e9f057387 100644
> --- a/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
> +++ b/drivers/phy/qualcomm/phy-qcom-sgmii-eth.c
> @@ -41,7 +41,7 @@ struct qcom_dwmac_sgmii_phy_data {
>  	phy_interface_t interface;
>  };
>  
> -static void qcom_dwmac_sgmii_phy_init_1g(struct regmap *regmap)
> +static void qcom_dwmac_sgmii_phy_init_v5_1g(struct regmap *regmap)
>  {
>  	regmap_write(regmap, QSERDES_PCS + QPHY_PCS_SW_RESET, 0x01);
>  	regmap_write(regmap, QSERDES_PCS + QPHY_PCS_POWER_DOWN_CONTROL, 0x01);
> @@ -129,7 +129,7 @@ static void qcom_dwmac_sgmii_phy_init_1g(struct regmap *regmap)
>  	regmap_write(regmap, QSERDES_PCS + QPHY_PCS_PHY_START, 0x01);
>  }
>  
> -static void qcom_dwmac_sgmii_phy_init_2p5g(struct regmap *regmap)
> +static void qcom_dwmac_sgmii_phy_init_v5_2p5g(struct regmap *regmap)
>  {
>  	regmap_write(regmap, QSERDES_PCS + QPHY_PCS_SW_RESET, 0x01);
>  	regmap_write(regmap, QSERDES_PCS + QPHY_PCS_POWER_DOWN_CONTROL, 0x01);
> @@ -236,11 +236,11 @@ static int qcom_dwmac_sgmii_phy_calibrate(struct phy *phy)
>  	case PHY_INTERFACE_MODE_SGMII:
>  	case PHY_INTERFACE_MODE_1000BASEX:
>  		/* 1.25Gbps mode */
> -		qcom_dwmac_sgmii_phy_init_1g(data->regmap);
> +		qcom_dwmac_sgmii_phy_init_v5_1g(data->regmap);
>  		break;
>  	case PHY_INTERFACE_MODE_2500BASEX:
>  		/* 3.125Gbps mode */
> -		qcom_dwmac_sgmii_phy_init_2p5g(data->regmap);
> +		qcom_dwmac_sgmii_phy_init_v5_2p5g(data->regmap);
>  		break;
>  	default:
>  		return -EINVAL;
> 
> -- 
> 2.34.1
> 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 112 bytes --]

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-12-04 10:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 19:59 [PATCH v2 0/5] phy: qcom: sgmii-eth: add Nord USXGMII support Mohd Ayaan Anwar
2026-12-01 19:59 ` [PATCH v2 1/5] dt-bindings: phy: qcom,sa8775p-dwmac-sgmii-phy: add Nord compatible Mohd Ayaan Anwar
2026-12-01 19:59 ` [PATCH v2 2/5] phy: qcom: sgmii-eth: rename QMP v5 initialization functions Mohd Ayaan Anwar
2026-12-04 10:57   ` Lorenzo Bianconi [this message]
2026-12-01 19:59 ` [PATCH v2 3/5] phy: qcom: sgmii-eth: select init functions through match data Mohd Ayaan Anwar
2026-12-04 11:07   ` Lorenzo Bianconi
2026-12-01 19:59 ` [PATCH v2 4/5] phy: qcom: sgmii-eth: parameterize readiness register offsets Mohd Ayaan Anwar
2026-12-04 11:10   ` Lorenzo Bianconi
2026-12-01 19:59 ` [PATCH v2 5/5] phy: qcom: sgmii-eth: add Nord USXGMII support Mohd Ayaan Anwar
2026-12-04 11:13   ` Lorenzo Bianconi

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=axKcn6huVSkIETqF@lore-desk \
    --to=lorenzo.bianconi@oss.qualcomm.com \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=mani@kernel.org \
    --cc=mohd.anwar@oss.qualcomm.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=vkoul@kernel.org \
    /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