Skip to content

Commit 0b6e3d0

Browse files
lunndavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a11485b commit 0b6e3d0

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+1
-1
lines changed

drivers/net/dsa/mv88e6xxx/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int mv88e6xxx_port_set_speed(struct mv88e6xxx_chip *chip, int port,
213213
reg &= ~PORT_PCS_CTRL_ALTSPEED;
214214
if (force_bit) {
215215
reg &= ~PORT_PCS_CTRL_FORCE_SPEED;
216-
if (speed)
216+
if (speed != SPEED_UNFORCED)
217217
ctrl |= PORT_PCS_CTRL_FORCE_SPEED;
218218
}
219219
reg |= ctrl;

0 commit comments

Comments
 (0)