]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: hns3: enlarge HCLGE_RESET_WAIT_CNT
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 11 Jan 2020 08:33:51 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 22:52:23 +0000 (14:52 -0800)
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: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 89621b5876032f4cc4624b8ae4f42fef97f4ff43..d81c9760872660b8c4743c6ddcd2086cb14bad21 100644 (file)
@@ -3260,7 +3260,8 @@ static int hclge_notify_roce_client(struct hclge_dev *hdev,
 static int hclge_reset_wait(struct hclge_dev *hdev)
 {
 #define HCLGE_RESET_WATI_MS    100
-#define HCLGE_RESET_WAIT_CNT   200
+#define HCLGE_RESET_WAIT_CNT   350
+
        u32 val, reg, reg_bit;
        u32 cnt = 0;