Skip to content

Commit bd1d76a

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: improve .set_clk_tx_rate() method error message
Improve the .set_clk_tx_rate() method error message to include the PHY interface mode along with the speed, which will be helpful to the RK implementations. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://patch.msgid.link/E1uPjjx-0049r5-NN@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 91695b8 commit bd1d76a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,8 @@ static void stmmac_mac_link_up(struct phylink_config *config,
10621062
interface, speed);
10631063
if (ret < 0)
10641064
netdev_err(priv->dev,
1065-
"failed to configure transmit clock for %dMbps: %pe\n",
1066-
speed, ERR_PTR(ret));
1065+
"failed to configure %s transmit clock for %dMbps: %pe\n",
1066+
phy_modes(interface), speed, ERR_PTR(ret));
10671067
}
10681068

10691069
stmmac_mac_set(priv, priv->ioaddr, true);

0 commit comments

Comments
 (0)