net: hns3: check reset interrupt status when reset fails
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 28 Aug 2019 14:23:15 +0000 (22:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2019 23:57:44 +0000 (16:57 -0700)
commit2336f19d789223b9f42f111aab8de6ad66d12c28
tree45ea9966d56dc8b260b5483ca5b02eb10a3fba54
parentc9765a89d142f614b917ead75e23f1915f7e748d
net: hns3: check reset interrupt status when reset fails

Currently, the reset interrupt will be cleared firstly, so when
reset fails, if interrupt status register has reset interrupt,
it means there is a new coming reset.

Fixes: 72e2fb07997c ("net: hns3: clear reset interrupt status in hclge_irq_handle()")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h