diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 47f4ce02d7bccd38a2d3d00fdac3266e49ddca0c..19db68d74cb45bede12aa3ed9f93055dc735565f 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -340,6 +340,9 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) "failed to validate link configuration for in-band status\n"); return -EINVAL; } + + /* Check if MAC/PCS also supports Autoneg. */ + pl->link_config.an_enabled = phylink_test(pl->supported, Autoneg); } return 0;