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: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
01952206e1
commit
6f45a9bdd2
|
@ -426,6 +426,9 @@ int hclge_cmd_init(struct hclge_dev *hdev)
|
|||
* reset may happen when lower level reset is being processed.
|
||||
*/
|
||||
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;
|
||||
goto err_cmd_init;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue