projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: hns3: fix reset delay time to avoid configuration timeout
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
hisilicon
/
hns3
/
hns3vf
/
hclgevf_main.c
diff --git
a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
index
f240462
..
dd08989
100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
+++ b/
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
@@
-1436,7
+1436,10
@@
static int hclgevf_reset_wait(struct hclgevf_dev *hdev)
* might happen in case reset assertion was made by PF. Yes, this also
* means we might end up waiting bit more even for VF reset.
*/
- msleep(5000);
+ if (hdev->reset_type == HNAE3_VF_FULL_RESET)
+ msleep(5000);
+ else
+ msleep(500);
return 0;
}