Commit bd1d76a6 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Jakub Kicinski
Browse files

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: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/E1uPjjx-0049r5-NN@rmk-PC.armlinux.org.uk


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 91695b85
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);