net: phylink: Fix phylink_err() function name error in phylink_major_config
Subsystems (4)
PATCH 1/1 net: phylink: Fix phylink_err() function name error in phylink_major_config
if pl->mac_ops->mac_finish() failed, phylink_err should use "mac_finish" instead of "mac_prepare".
Fixes b7ad14c2fe2d4 ("net: phylink: re-implement interface configuration with PCS")
Signed-off-by Ong Boon Leong <[email protected]>
--- drivers/net/phy/phylink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/phylink.c +1 -1
@@ -476,7 +476,7 @@ static void phylink_major_config(struct phylink *pl, bool restart, err = pl->mac_ops->mac_finish (pl->config, pl->cur_link_an_mode, state->interface);if (err <0 ) -phylink_err (pl,"mac_prepare failed: %pe\n" , +phylink_err (pl,"mac_finish failed: %pe\n" ,ERR_PTR (err)); } }
Signature · 1 line
2.25.1
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 8 lines · On Mon, 15 Mar 2021 12:33:42 +0800 you wrote:
if
pl->mac_ops->mac_finish()failed,phylink_errshould use "mac_finish" instead of "mac_prepare".Fixes b7ad14c2fe2d4 ("net: phylink: re-implement interface configuration with PCS")Signed-off-by Ong Boon Leong <[email protected]>--- drivers/net/phy/phylink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net,1/1] net: phylink: Fix phylink_err() function name error in phylink_major_config
https://git.kernel.org/netdev/net/c/d82c6c1aaccd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html