]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: restore the MAC autoneg state after reset
authorJian Shen <shenjian15@huawei.com>
Thu, 20 Jun 2019 08:52:38 +0000 (16:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 15:59:01 +0000 (11:59 -0400)
commit5d8e3f0e2158b7b9425d27a163469372240f68b5
treea82884d9d0e1fc4f4f831f3572ddc8023a59c1ea
parent71e2f6111c2fd9c6e2eb9d6face14c003601faec
net: hns3: restore the MAC autoneg state after reset

When doing global reset, the MAC autoneg state of fibre
port is set to default, which may cause user configuration
lost. This patch fixes it by restore the MAC autoneg state
after reset.

Fixes: c8c430832346 ("net: hns3: add autoneg and change speed support for fibre port")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c