]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Correctly report autonegotiation
authorIdo Schimmel <idosch@mellanox.com>
Mon, 12 Sep 2016 11:26:23 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 16:16:33 +0000 (12:16 -0400)
commitd30f30133052b7ed785143673f687e9bf9c16548
treec025ae2d349f5402b18ed816aeeed07711395df9
parent7ca25e93a4bf9139c157e0487735cdfe96b850a1
mlxsw: spectrum: Correctly report autonegotiation

Up until now the device always reported autonegotiation to be off
although it was on by default.

Allow the user to disable / enable autonegotiation and report its status
correctly.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h