Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp415070ybm; Tue, 26 May 2020 21:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykVpJhmFHD7Ac9JQaQ4/6FGIScRXgzBIu7MxmJ8pp3s/CQLCbI4tAqp4l2EzC1cxS4nxhX X-Received: by 2002:a5d:49c5:: with SMTP id t5mr23495085wrs.18.1590553816732; Tue, 26 May 2020 21:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590553816; cv=none; d=google.com; s=arc-20160816; b=TL83MidBTTypTli9MTKCphUFWdWcWrXNAHOLyGEawAPPQyVVfSMQkqT1qbcVPEnKFK SN/5DbQM4TcZB9aBExguNEZxXiwUPEkxp6xGMtrJdtHgbt8UY7ct+wZv6FClmcTPZAa7 IdfI7fUIrxouj66d2KPbDNL7sad1QHveNqvvlabUGypu/P0zPXZiJtfN9tX97qypZ9pI 8vtsn1t2luoZkHiZD56lu8cbqfLzRt8PSbat7Kei/g5QLB/+7HtCPUcylGQhi2GfUJEM 9IQIoTktktKQoAvQh0+8xZXL1gjZ1kQbRvl27vA7DiZRXryNtA043GgE41it82tYZVid Lq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=7Gevwz43wdicXbigaIpbO7U7ziW6ObW2VIL78VWBgQo=; b=UdGGzObbvPK6ny/wbXnIJwdr4PfiyrsN82sANuF2Ln0A0VUpa/q2YY3iegrxolXwmb ISoLeHuHHL0+P4h7uDutRNVorlo2U4UWjpXGUHKK8Na0RdSXgaLC3hrNJ4YKEftZxhLO TBLT0eIQkLWkPlvT0/i6rPVaAM61IqZPxGv/kEUBjgXEhWh2qqXcYawoy9kaoEo5KR8U tG05OQ9zfKaUFtG0o68Kms9hk1wRognLMpLedhMBNoW+hGcnjHc51DtFBIjlkSMCTNo1 emjZIzeeBZarOwjSnDEWy/4gbtMk9mCM8fHHu/cmA1PJZOJB7Int1BibnMnZy/J89VBy 50bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1203253ejt.703.2020.05.26.21.29.54; Tue, 26 May 2020 21:30:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727899AbgE0BA4 (ORCPT + 99 others); Tue, 26 May 2020 21:00:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5342 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727813AbgE0BAo (ORCPT ); Tue, 26 May 2020 21:00:44 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C7A2858C2580136F5CA8; Wed, 27 May 2020 09:00:41 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 27 May 2020 09:00:34 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V2 net-next 4/4] net: hns3: add a print for initializing CMDQ when reset pending Date: Wed, 27 May 2020 08:59:17 +0800 Message-ID: <1590541157-6803-5-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590541157-6803-1-git-send-email-tanhuazhong@huawei.com> References: <1590541157-6803-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 7f509ef..64a1d0bd 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; } -- 2.7.4