]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: stmmac: improve .set_clk_tx_rate() method error message
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 12 Jun 2025 15:21:17 +0000 (16:21 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Jun 2025 01:18:33 +0000 (18:18 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index b948df1bff9a84966e6e7a43831585b81ca3748a..c3845ec62fbdb65d0b4ef3b87cd611272d9db833 100644 (file)
@@ -1062,8 +1062,8 @@ static void stmmac_mac_link_up(struct phylink_config *config,
                                                interface, speed);
                if (ret < 0)
                        netdev_err(priv->dev,
-                                  "failed to configure transmit clock for %dMbps: %pe\n",
-                                  speed, ERR_PTR(ret));
+                                  "failed to configure %s transmit clock for %dMbps: %pe\n",
+                                  phy_modes(interface), speed, ERR_PTR(ret));
        }
 
        stmmac_mac_set(priv, priv->ioaddr, true);