mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
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:
committed by
David S. Miller
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user