[PATCH net-next] net: stmmac: improve .set_clk_tx_rate() method error message
Jacob Keller
jacob.e.keller at intel.com
Thu Jun 12 10:34:36 PDT 2025
On 6/12/2025 8:21 AM, Russell King (Oracle) wrote:
> 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 at armlinux.org.uk>
> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> index 1369fa70bc58..24a4b82e934b 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> @@ -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);
Reviewed-by: Jacob Keller <jacob.e.keller at intel.com>
More information about the linux-arm-kernel
mailing list