]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: log and clear hardware error after reset complete
authorJian Shen <shenjian15@huawei.com>
Sat, 19 Oct 2019 08:03:56 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2019 16:22:10 +0000 (09:22 -0700)
commitc18a96cc587a07e7a0b7fd40b9fcb30b9a892f3c
tree99c7ce25485421e8e85c8da441f6b782d446c8f2
parentc90f7382da45962758c4d8ff5fd736cbfec3f552
net: hns3: log and clear hardware error after reset complete

When device is resetting, the CMDQ service may be stopped until
reset completed. If a new RAS error occurs at this moment, it
will no be able to clear the RAS source. This patch fixes it
by clear the RAS source after reset complete.

Signed-off-by: Jian Shen <shenjian15@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