diff --git a/target/linux/generic/files/drivers/net/phy/mvswitch.c b/target/linux/generic/files/drivers/net/phy/mvswitch.c index af31d0b5ac0..b2dfe0b4eea 100644 --- a/target/linux/generic/files/drivers/net/phy/mvswitch.c +++ b/target/linux/generic/files/drivers/net/phy/mvswitch.c @@ -341,6 +341,12 @@ mvswitch_read_status(struct phy_device *pdev) return 0; } +static int +mvswitch_aneg_done(struct phy_device *phydev) +{ + return 1; /* Return any positive value */ +} + static int mvswitch_config_aneg(struct phy_device *phydev) { @@ -412,6 +418,7 @@ static struct phy_driver mvswitch_driver = { .detach = &mvswitch_detach, .config_init = &mvswitch_config_init, .config_aneg = &mvswitch_config_aneg, + .aneg_done = &mvswitch_aneg_done, .read_status = &mvswitch_read_status, .driver = { .owner = THIS_MODULE,}, };