net/mlx4_en: mlx4_en_set_settings() always fails when autoneg is set
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Nov 2014 12:19:44 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2014 20:06:30 +0000 (15:06 -0500)
commit312df74c712252017f0c2c12289f00b146ca72b3
tree6805c38078381016c8f1de092da8f3ad4ae68532
parent541675580ffcd098d746f7f713c7dbcc86744925
net/mlx4_en: mlx4_en_set_settings() always fails when autoneg is set

Fix ethtool set settings to not check AUTONEG_ENABLE

mlx4_en_set_settings should not check if cmd->autoneg == AUTONEG_ENABLE,
cmd->autoneg can be enabled by default and this check will fail other settings requests.
mlx4_en driver doesn't support changing autoneg value, but shouldn't fail the request
in case cmd->autoneg was set.

Fixes: d48b3ab ("net/mlx4_en: Use PTYS register to set ethtool settings (Speed)")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c