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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:02:29 +0000 (14:02 -0700)
commit3e640b2cdc6ee44b9057fbcc14951b41da82eb9d
treec28069f2dcffcfa31d0a8de4b8248368505bf3a0
parent6b7d3544095519ae850989e238df17ae6bc38a0b
net: hns: Restart autoneg need return failed when autoneg off

[ Upstream commit ed29ca8b9592562559c64d027fb5eb126e463e2c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c