net: hns: Restart autoneg need return failed when autoneg off
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 26 Jan 2019 09:18:26 +0000 (17:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2019 07:01:56 +0000 (23:01 -0800)
commited29ca8b9592562559c64d027fb5eb126e463e2c
tree88015f55ede7329157ee4565e7683db10ac3559b
parent263c6d75f9a544a3c2f8f6a26de4f4808d8f59cf
net: hns: Restart autoneg need return failed when autoneg off

The hns driver of earlier devices, when autoneg off, restart autoneg
will return -EINVAL, so make the hns driver for the latest devices
do the same.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c