]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'net-stmmac-qcom-ethqos-simplifications'
authorJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:44:48 +0000 (17:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:44:48 +0000 (17:44 -0700)
commit23f09f01b495cc510a19b30b6093fb4cb0284aaf
tree239016b5092087454503e992bd0373120db1d1b6
parent5b38e821b929c23a3b7bfa2705cc7b0e76a3ee7b
parent0d1c18a10dd16d256100005f22e875cd741a35fb
Merge branch 'net-stmmac-qcom-ethqos-simplifications'

Russell King says:

====================
net: stmmac: qcom-ethqos: simplifications

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.
====================

Link: https://patch.msgid.link/Z_p0LzY2_HFupWK0@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>