提交 5bb784e9 编写于 作者: H Huazhong Tan 提交者: David S. Miller

net: hns3: enlarge HCLGE_RESET_WAIT_CNT

When the load of firmware is high, its reset task may takes
more time(which will be as long as 35 seconds). So this
patch modifies HCLGE_RESET_WAIT_CNT to match the firmware's.
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f28368bb
...@@ -3260,7 +3260,8 @@ static int hclge_notify_roce_client(struct hclge_dev *hdev, ...@@ -3260,7 +3260,8 @@ static int hclge_notify_roce_client(struct hclge_dev *hdev,
static int hclge_reset_wait(struct hclge_dev *hdev) static int hclge_reset_wait(struct hclge_dev *hdev)
{ {
#define HCLGE_RESET_WATI_MS 100 #define HCLGE_RESET_WATI_MS 100
#define HCLGE_RESET_WAIT_CNT 200 #define HCLGE_RESET_WAIT_CNT 350
u32 val, reg, reg_bit; u32 val, reg, reg_bit;
u32 cnt = 0; u32 cnt = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册