[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <80a60564-3174-4edd-a57c-706431f2ad91@lunn.ch>
Date: Tue, 19 Aug 2025 18:20:27 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Yijie Yang <yijie.yang@....qualcomm.com>
Cc: Vinod Koul <vkoul@...nel.org>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
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>,
Richard Cochran <richardcochran@...il.com>, netdev@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, stable+noautosel@...nel.org
Subject: Re: [PATCH v4 2/6] net: stmmac: Inverse the phy-mode definition
> static int ethqos_rgmii_macro_init(struct qcom_ethqos *ethqos, int speed)
> {
> struct device *dev = ðqos->pdev->dev;
> - int phase_shift;
> + int phase_shift = 0;
> int loopback;
>
> /* Determine if the PHY adds a 2 ns TX delay or the MAC handles it */
> - if (ethqos->phy_mode == PHY_INTERFACE_MODE_RGMII_ID ||
> - ethqos->phy_mode == PHY_INTERFACE_MODE_RGMII_TXID)
> - phase_shift = 0;
> - else
> + if (ethqos->phy_mode == PHY_INTERFACE_MODE_RGMII_ID)
> phase_shift = RGMII_CONFIG2_TX_CLK_PHASE_SHIFT_EN;
Does this one setting control both RX and TX delays? The hardware
cannot support 2ns delay on TX, but 0ns on RX? Or 2ns on RX but 0ns on
TX?
Andrew
Powered by blists - more mailing lists