netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: stmmac: qcom-ethqos: simplifications
@ 2025-04-12 14:09 Russell King (Oracle)
  2025-04-12 14:09 ` [PATCH net-next 1/4] net: stmmac: qcom-ethqos: set serdes speed using serdes_speed Russell King (Oracle)
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Russell King (Oracle) @ 2025-04-12 14:09 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Alexandre Torgue, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, linux-arm-kernel, linux-arm-msm, linux-stm32,
	Maxime Coquelin, netdev, Paolo Abeni, Vinod Koul

Remove unnecessary code from the qcom-ethqos glue driver.

Start by consistently using -> serdes_speed to set the speed of the
serdes PHY rather than sometimes using ->serdes_speed and sometimes
using ->speed.

This then allows the removal of ->speed in the second patch.

There is no need to set the maximum speed just because we're using
2500BASE-X - phylink already knows that 2500BASE-X can't support
faster speeds.

This then makes qcom_ethqos_speed_mode_2500() redundant as it's
setting the interface mode to the value that was determined in the
switch statement that already determined that the interface mode
had this value.

Not tested on hardware.

 .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c    | 43 ++++++++--------------
 1 file changed, 15 insertions(+), 28 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-04-15  0:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 14:09 [PATCH net-next 0/4] net: stmmac: qcom-ethqos: simplifications Russell King (Oracle)
2025-04-12 14:09 ` [PATCH net-next 1/4] net: stmmac: qcom-ethqos: set serdes speed using serdes_speed Russell King (Oracle)
2025-04-13 21:05   ` Andrew Lunn
2025-04-12 14:09 ` [PATCH net-next 2/4] net: stmmac: qcom-ethqos: remove ethqos->speed Russell King (Oracle)
2025-04-13 21:06   ` Andrew Lunn
2025-04-12 14:09 ` [PATCH net-next 3/4] net: stmmac: qcom-ethqos: remove unnecessary setting max_speed Russell King (Oracle)
2025-04-13 21:07   ` Andrew Lunn
2025-04-12 14:10 ` [PATCH net-next 4/4] net: stmmac: qcom-ethqos: remove speed_mode_2500() method Russell King (Oracle)
2025-04-13 21:07   ` Andrew Lunn
2025-04-15  0:50 ` [PATCH net-next 0/4] net: stmmac: qcom-ethqos: simplifications patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).