net: phy: at803x: add MDIX support to AR8031/33
authorMichael Walle <michael@walle.cc>
Sun, 14 Feb 2021 01:17:11 +0000 (02:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 23:20:00 +0000 (15:20 -0800)
AR8035 recently gained MDIX support. The same functions will work for
the AR8031/33 PHY. We just need to add the at803x_config_aneg()
callback.

This was tested on a Kontron sl28 board.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c

index d67bddc..c2aa4c9 100644 (file)
@@ -1190,6 +1190,7 @@ static struct phy_driver at803x_driver[] = {
        .probe                  = at803x_probe,
        .remove                 = at803x_remove,
        .config_init            = at803x_config_init,
+       .config_aneg            = at803x_config_aneg,
        .soft_reset             = genphy_soft_reset,
        .set_wol                = at803x_set_wol,
        .get_wol                = at803x_get_wol,