提交 7c4638cd 编写于 作者: G gaoxun3 提交者: Xie XiuQi

net: hns3: fix driver misidentify chip

reset state

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This commit is dedicated to solve the reset failure when the driver
misidentifies the chip reset status.
The modification is strongly associated with the one on the function
"hclge_get_hw_reset_stat" in hns3/hns-customer/hns3pf/hclge_main_it.c
Signed-off-by: Ngaoxun3 <gaoxun3@huawei.com>
Reviewed-by: Nliyongxin1 <liyongxin1@huawei.com>
Reviewed-by: Ndengweiwei <dengweiwei@huawei.com>
Reviewed-by: Nzhongzhaohui <zhongzhaohui@huawei.com>
Reviewed-by: Nchenjunxin <chenjunxin1@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 997350e5
......@@ -6262,7 +6262,7 @@ static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle)
struct hclge_dev *hdev = vport->back;
return hclge_read_dev(&hdev->hw, HCLGE_GLOBAL_RESET_REG) ||
hclge_read_dev(&hdev->hw, HCLGE_FUN_RST_ING);
(hclge_read_dev(&hdev->hw, HCLGE_FUN_RST_ING) & BIT(0));
}
static bool hclge_ae_dev_resetting(struct hnae3_handle *handle)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册