Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vLgNA-0000000FMjN-0DSS@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
f15bcd07 fdc38d34

+1 -2
+1 -2
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
··· 1735 1735 struct rk_priv_data *bsp_priv = bsp_priv_; 1736 1736 1737 1737 if (bsp_priv->ops->set_speed) 1738 - return bsp_priv->ops->set_speed(bsp_priv, bsp_priv->phy_iface, 1739 - speed); 1738 + return bsp_priv->ops->set_speed(bsp_priv, interface, speed); 1740 1739 1741 1740 return -EINVAL; 1742 1741 }