]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:04 +0000 (14:04 -0700)
commit9a7bb39c1c50172c2dc39edb3901010fa0593083
treea11b79a96f0a4b78ef28a4931a70ba509cad32e3
parent61523640c7a6b99e59179b645f00e4454158a09e
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