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)
commit0c83f88c02085a762d52ebcd9cc4ca3df39db797
treec025ae2d349f5402b18ed816aeeed07711395df9
parent36a19b299536746f5c01d7716dac962f831e4d38
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