]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phylink: Fix phylink_err() function name error in phylink_major_config
authorOng Boon Leong <boon.leong.ong@intel.com>
Mon, 15 Mar 2021 04:33:42 +0000 (12:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2021 19:58:10 +0000 (12:58 -0700)
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 <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c

index 053c92e02cd81a60008ecedb64bc85d3c1de3b57..dc2800beacc3296066da911ab85d27809f12cf86 100644 (file)
@@ -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));
        }
 }