]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05a1f205401fed4e263f2042b57f38ad411dbca4
tree88015f55ede7329157ee4565e7683db10ac3559b
parent3c1bef655a92e9010445ca08b29540839d894d80
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