mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mohd Ayaan Anwar <quic_mohdayaa@quicinc.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Wasim Nazir <quic_wasimn@quicinc.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Richard Cochran <richardcochran@gmail.com>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
	<kernel@quicinc.com>, <kernel@oss.qualcomm.com>
Subject: Re: [PATCH 3/8] arm64: dts: qcom: sa8775p: Add ethernet card for ride & ride-r3
Date: Mon, 1 Sep 2025 23:15:44 +0530	[thread overview]
Message-ID: <aLXbyJ/PcHkpYSos@hu-mohdayaa-hyd.qualcomm.com> (raw)
In-Reply-To: <c445043d-2289-455d-af62-b18704bab749@lunn.ch>

On Wed, May 07, 2025 at 04:23:52PM +0200, Andrew Lunn wrote:
> > +&ethernet0 {
> > +	phy-handle = <&sgmii_phy0>;
> > +	phy-mode = "sgmii";
> > +
> > +	pinctrl-0 = <&ethernet0_default>;
> > +	pinctrl-names = "default";
> > +
> > +	snps,mtl-rx-config = <&mtl_rx_setup>;
> > +	snps,mtl-tx-config = <&mtl_tx_setup>;
> > +	snps,ps-speed = <1000>;
> 
> SGMII can only go up to 1000, so why is this property needed?
> 

That's true. This shouldn't be required.

> > +&ethernet0 {
> > +	phy-handle = <&hsgmii_phy0>;
> > +	phy-mode = "2500base-x";
> > +
> > +	pinctrl-0 = <&ethernet0_default>;
> > +	pinctrl-names = "default";
> > +
> > +	snps,mtl-rx-config = <&mtl_rx_setup>;
> > +	snps,mtl-tx-config = <&mtl_tx_setup>;
> > +	snps,ps-speed = <1000>;
> 
> This looks odd. 2500Base-X, yet 1000?
> 
> 	Andrew

Just to give some background, this board is using the infamous OCSGMII
mode. But you are correct, the "snps,ps-speed" property is not required
here. The qcom-ethqos driver is agnostic to it as the MAC speed is set
using PCS AN during mac_link_up:
stmmac_mac_link_up -> fix_mac_speed -> ethqos_configure_sgmii.

We will remove it in the next revision of [0]. I also noticed this
redundant property in a few other places and will submit separate
cleanup patches for those as well.

	Ayaan
---
[0] https://lore.kernel.org/all/20250826-lemans-evk-bu-v1-3-08016e0d3ce5@oss.qualcomm.com/


  reply	other threads:[~2025-09-01 17:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  6:51 [PATCH 0/8] qcom: Refactor sa8775p/qcs9100 based ride boards Wasim Nazir
2025-05-07  6:51 ` [PATCH 1/8] dt-bindings: arm: qcom: Remove bindings for qcs9100 ride Wasim Nazir
2025-05-07  6:51 ` [PATCH 2/8] arm64: dts: qcom: qcs9100: Remove qcs9100 ride board Wasim Nazir
2025-05-07  6:51 ` [PATCH 3/8] arm64: dts: qcom: sa8775p: Add ethernet card for ride & ride-r3 Wasim Nazir
2025-05-07 14:23   ` Andrew Lunn
2025-09-01 17:45     ` Mohd Ayaan Anwar [this message]
2025-05-07  6:51 ` [PATCH 4/8] arm64: dts: qcom: sa8775p: Create ride common file Wasim Nazir
2025-05-07  6:51 ` [PATCH 5/8] dt-bindings: arm: qcom: Add bindings for qam8775p SOM Wasim Nazir
2025-05-07  7:00   ` Krzysztof Kozlowski
2025-05-16 13:42     ` Wasim Nazir
2025-05-07  6:51 ` [PATCH 6/8] arm64: dts: qcom: sa8775p: Introduce QAM8775p SOM Wasim Nazir
2025-05-07  7:01   ` Krzysztof Kozlowski
2025-05-07  6:51 ` [PATCH 7/8] dt-bindings: arm: qcom: Add bindings for QCS9100M SOM Wasim Nazir
2025-05-07  7:03   ` Krzysztof Kozlowski
2025-05-07  6:51 ` [PATCH 8/8] arm64: dts: qcom: qcs9100: Introduce " Wasim Nazir
2025-05-07  7:03   ` Krzysztof Kozlowski
2025-05-07 14:17 ` [PATCH 0/8] qcom: Refactor sa8775p/qcs9100 based ride boards Andrew Lunn

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=aLXbyJ/PcHkpYSos@hu-mohdayaa-hyd.qualcomm.com \
    --to=quic_mohdayaa@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@oss.qualcomm.com \
    --cc=kernel@quicinc.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=quic_wasimn@quicinc.com \
    --cc=richardcochran@gmail.com \
    --cc=robh@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

all inboxes | Powered by JetHome®