1 --- a/drivers/net/phy/at803x.c
2 +++ b/drivers/net/phy/at803x.c
3 @@ -484,6 +484,13 @@ static int at803x_aneg_done(struct phy_d
4 if (!(phy_read(phydev, AT803X_PSSR) & AT803X_PSSR_MR_AN_COMPLETE)) {
5 pr_warn("803x_aneg_done: SGMII link is not ok\n");
8 + if (phydev->mdio.dev.of_node &&
9 + of_property_read_bool(phydev->mdio.dev.of_node,
10 + "at803x-override-sgmii-link-check")) {
15 /* switch back to copper page */
16 phy_write(phydev, AT803X_REG_CHIP_CONFIG, ccr | AT803X_BT_BX_REG_SEL);