mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 10:56:06 -04:00
net: stmmac: qcom-ethqos: set serdes speed using serdes_speed
ethqos->serdes_speed represents the current speed the serdes was configured for, which should be the same as ethqos->speed. Since we wish to remove ethqos->speed to simplify the code, switch to using the serdes_speed instead. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/E1u3bYL-000EcE-5c@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
5b38e821b9
commit
b458981008
@@ -709,7 +709,7 @@ static int qcom_ethqos_serdes_powerup(struct net_device *ndev, void *priv)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return phy_set_speed(ethqos->serdes_phy, ethqos->speed);
|
||||
return phy_set_speed(ethqos->serdes_phy, ethqos->serdes_speed);
|
||||
}
|
||||
|
||||
static void qcom_ethqos_serdes_powerdown(struct net_device *ndev, void *priv)
|
||||
|
||||
Reference in New Issue
Block a user