]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit929fc1e880dbef4743a79387414bbcc24b08d8b5
treed2dc492193c0109d02ede04056d3c3fe8dba4e06
parent73c33f7bfa120f11bf763e527e12ec9f7b71825a
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