提交 6f45a9bd 编写于 作者: H Huazhong Tan 提交者: David S. Miller

net: hns3: add a print for initializing CMDQ when reset pending

When initializing CMDQ fails because of reset pending,
there is no hint for debugging, so adds a log for it.
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 01952206
...@@ -426,6 +426,9 @@ int hclge_cmd_init(struct hclge_dev *hdev) ...@@ -426,6 +426,9 @@ int hclge_cmd_init(struct hclge_dev *hdev)
* reset may happen when lower level reset is being processed. * reset may happen when lower level reset is being processed.
*/ */
if ((hclge_is_reset_pending(hdev))) { if ((hclge_is_reset_pending(hdev))) {
dev_err(&hdev->pdev->dev,
"failed to init cmd since reset %#lx pending\n",
hdev->reset_pending);
ret = -EBUSY; ret = -EBUSY;
goto err_cmd_init; goto err_cmd_init;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册