]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add error handling compatibility during initialization
authorJiaran Zhang <zhangjiaran@huawei.com>
Tue, 8 Jun 2021 13:08:31 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 21:43:31 +0000 (14:43 -0700)
commit02cc8952e865a1318bd45165cf81798237caff78
treeaf31a42a080d824a392ecd57cb01e7dbd18b8abd
parent0c15109623f73b2165026c2aaa46648b2951d6c5
net: hns3: add error handling compatibility during initialization

During initialization, the driver logs and clears the hw errors that
already occurred. For device supports imp-handle ras capability, it
needs handle different error status, otherwise it may cause wrong reset.

So fix it by adding a new processing branch.

Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c