From: Huazhong Tan Date: Wed, 27 May 2020 00:59:17 +0000 (+0800) Subject: net: hns3: add a print for initializing CMDQ when reset pending X-Git-Tag: baikal/mips/sdk5.9~13530^2~83^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=d3012bce5801e3817393b51f5896999433a4da33;p=kernel.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 7f509eff562ee..64a1d0bdd7d12 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -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; }