diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-10-10 00:46:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-10 11:27:42 +0100 |
commit | 9d1c29b4028557a496be9c5eb2b4b86063700636 (patch) | |
tree | 9202056c5c68a06261d3dee6a92d98e6abadc47a | |
parent | 1ca8311949aec5c9447645731ef1c6bc5bd71350 (diff) |
net: phy: at803x: enable prefer master for 83xx internal phy
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>
-rw-r--r-- | drivers/net/phy/at803x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index df76e7f1141c..76a1d4629b6c 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -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; } |