net: dsa: mv88e6xxx: Respect SPEED_UNFORCED, don't set force bit
authorAndrew Lunn <andrew@lunn.ch>
Wed, 16 Nov 2016 03:26:48 +0000 (04:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 20:12:51 +0000 (15:12 -0500)
commit0b6e3d0322b39a5f3a974a0d3cb8677aeb8106a5
treed2dc492193c0109d02ede04056d3c3fe8dba4e06
parenta11485b737aa9634e9dbb6f53e65e3a801fd1e4c
net: dsa: mv88e6xxx: Respect SPEED_UNFORCED, don't set force bit

The SPEED_UNFORCED indicates the MAC & PHY should perform
auto-negotiation to determine a speed which works. If this is called
for, don't set the force bit. If it is set, the MAC actually does
10Gbps, why the internal PHYs don't support.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/port.c