projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03718db
)
net: hns3: Remove the warning when clear reset cause
author
Peng Li
<
[email protected]
>
Fri, 6 Jul 2018 10:28:03 +0000
(11:28 +0100)
committer
David S. Miller
<
[email protected]
>
Sat, 7 Jul 2018 02:13:07 +0000
(11:13 +0900)
Only the core/global/IMP reset need clear cause, other type does not
need do it. The warning may be treated as error as it is normal. This
patch removes the warning.
Signed-off-by: Peng Li <
[email protected]
>
Signed-off-by: Salil Mehta <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index df6a7a10bb835e1028f5fadb188951a4f3216f7b..4ca3e6b42f4fcbb5339cf96d1e894d88c624d94d 100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@
-2805,8
+2805,6
@@
static void hclge_clear_reset_cause(struct hclge_dev *hdev)
clearval = BIT(HCLGE_VECTOR0_CORERESET_INT_B);
break;
default:
- dev_warn(&hdev->pdev->dev, "Unsupported reset event to clear:%d",
- hdev->reset_type);
break;
}