net: phy: at803x: enable prefer master for 83xx internal phy
authorAnsuel Smith <ansuelsmth@gmail.com>
Sat, 9 Oct 2021 22:46:17 +0000 (00:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Oct 2021 10:27:42 +0000 (11:27 +0100)
From original QCA source code the port was set to prefer master as port
type in 1000BASE-T mode. Apply the same settings also here.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c

index df76e7f1141cdb5725da9dcf140b644f7309f5af..76a1d4629b6c59398be0c40f5c0677df9037fbd4 100644 (file)
@@ -1328,6 +1328,9 @@ static int qca83xx_config_init(struct phy_device *phydev)
                at803x_debug_reg_mask(phydev, AT803X_DEBUG_REG_0,
                                      QCA8327_DEBUG_MANU_CTRL_EN, 0);
 
+       /* Following original QCA sourcecode set port to prefer master */
+       phy_set_bits(phydev, MII_CTRL1000, CTL1000_PREFER_MASTER);
+
        return 0;
 }