Skip to content

Commit ddeba5b

Browse files
elvinongblgregkh
authored andcommitted
net: phylink: Fix phylink_err() function name error in phylink_major_config
[ Upstream commit d82c6c1 ] if pl->mac_ops->mac_finish() failed, phylink_err should use "mac_finish" instead of "mac_prepare". Fixes: b7ad14c ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 375f516 commit ddeba5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/phy/phylink.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static void phylink_major_config(struct phylink *pl, bool restart,
472472
err = pl->mac_ops->mac_finish(pl->config, pl->cur_link_an_mode,
473473
state->interface);
474474
if (err < 0)
475-
phylink_err(pl, "mac_prepare failed: %pe\n",
475+
phylink_err(pl, "mac_finish failed: %pe\n",
476476
ERR_PTR(err));
477477
}
478478
}

0 commit comments

Comments
 (0)