Commit 9d1c29b4 authored by Ansuel Smith's avatar Ansuel Smith Committed by David S. Miller
Browse files

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: default avatarAnsuel Smith <ansuelsmth@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ca83119
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}