net: stmmac: rk: use phylink's interface mode for set_clk_tx_rate()
Subsystems (5)
PATCH 1/1 net: stmmac: rk: use phylink's interface mode for set_clk_tx_rate()
rk_set_clk_tx_rate() is passed the interface mode from phylink which will be the same as bsp_priv->phy_iface. Use the passed-in interface mode rather than bsp_priv->phy_iface.
Signed-off-by Russell King (Oracle) <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -2
@@ -1735,8 +1735,7 @@ static int rk_set_clk_tx_rate(void *bsp_priv_, struct clk *clk_tx_i,struct rk_priv_data *bsp_priv = bsp_priv_;if (bsp_priv->ops->set_speed) -return bsp_priv->ops->set_speed (bsp_priv, bsp_priv->phy_iface, - speed); +return bsp_priv->ops->set_speed (bsp_priv, interface, speed);return -EINVAL ; }
Signature · 1 line
2.47.3
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 19 Nov 2025 11:29:16 +0000 you wrote:
rk_set_clk_tx_rate()is passed the interface mode from phylink which will be the same asbsp_priv->phy_iface. Use the passed-in interface mode rather thanbsp_priv->phy_iface.Signed-off-by Russell King (Oracle) <[email protected]>--- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Here is the summary with links:
- [net-next] net: stmmac: rk: use phylink's interface mode for set_clk_tx_rate()
https://git.kernel.org/netdev/net-next/c/f15bcd071913
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html