Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6355924ybf; Thu, 5 Mar 2020 18:59:11 -0800 (PST) X-Google-Smtp-Source: ADFU+vuCO2qnSB7gUqcItzZcGWXflAtIwZ5Y6ZxTabcAAZLiC6O7ZkYUsXZSg60x1a16Zy555dYq X-Received: by 2002:a9d:5d09:: with SMTP id b9mr784891oti.207.1583463551880; Thu, 05 Mar 2020 18:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583463551; cv=none; d=google.com; s=arc-20160816; b=yrl2nfYmi41HOIE4SKKGe/6H3J8VFcbWxcmIsLfQ9UDJrmg77uc0GKjjokHjDVOzK+ asiCw1UUr+vxYBfNyq6FNK5HeANQSE91+8wpYZ8ixtglx1RymaUl09EqvCIFOfMF2GnI xFTAb5zebKg22VtTDGY1mW3dcJ5gri3ZUxqFIyJGArQe166lIRC1TRjMRFP8wD3jMA/9 FwrPmp9EPsl72WvhF4IM84REUTl08ctB8RYuf5B8FB78i4kxiP7rb+VGbQkU3mF2Ob6S y3FERTMCVIkZif/7RNBLsorLQxmnYJndlWUoB1l3Rud71WRxct63NA0LycWCGGAxbdkU g1Pw== 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=dB6nmt0szYNm67VQ5JwtFFlwUu9JGke7WEYnZmVQDrE=; b=WpsTCnieZbY2JQV/7KIl7/2bblMFhzEJMWIHodPEfmuPuLeNrCJaE03RFLuwwH28Yh dVDhioF2yEUIdUudNObLtys89VH/+vpnK0rMKWh78HhPtbWeqPsyu0CtWkz2f1q11Hir calKgg6TiHehrBVos+E4MlK6tpU37cU4FrIkiBRS/IrtmlxzHVTh9qbCibUcOGzNK0LP SYSNVAeWRJzRIsgvAruY9JzKMuPw7mo+e9ylRz3GwHYilzOgDKeMnjAfYtJxIqC4A88d osogiUCza7lR3wsay1cm+UZ1brEi9R/P3UdlglC7Q92WedbilG4ok7hqHsQ8pO2TLo6F fSvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si578681otg.10.2020.03.05.18.58.45; Thu, 05 Mar 2020 18:59:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbgCFC6B (ORCPT + 99 others); Thu, 5 Mar 2020 21:58:01 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:38136 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726243AbgCFC6A (ORCPT ); Thu, 5 Mar 2020 21:58:00 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3C5DB95554F25382267C; Fri, 6 Mar 2020 10:57:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Mar 2020 10:57:50 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 8/9] net: hns3: synchronize some print relating to reset issue Date: Fri, 6 Mar 2020 10:57:17 +0800 Message-ID: <1583463438-60953-9-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583463438-60953-1-git-send-email-tanhuazhong@huawei.com> References: <1583463438-60953-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 This patch modifies some printing relating to reset issue. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++-- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index acb796c..c54f262 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -2228,7 +2228,7 @@ static void hns3_reset_prepare(struct pci_dev *pdev) { struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); - dev_info(&pdev->dev, "hns3 flr prepare\n"); + dev_info(&pdev->dev, "FLR prepare\n"); if (ae_dev && ae_dev->ops && ae_dev->ops->flr_prepare) ae_dev->ops->flr_prepare(ae_dev); } @@ -2237,7 +2237,7 @@ static void hns3_reset_done(struct pci_dev *pdev) { struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); - dev_info(&pdev->dev, "hns3 flr done\n"); + dev_info(&pdev->dev, "FLR done\n"); if (ae_dev && ae_dev->ops && ae_dev->ops->flr_done) ae_dev->ops->flr_done(ae_dev); } diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 69e2008..cdf7f4b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3442,7 +3442,7 @@ static void hclge_do_reset(struct hclge_dev *hdev) u32 val; if (hclge_get_hw_reset_stat(handle)) { - dev_info(&pdev->dev, "Hardware reset not finish\n"); + dev_info(&pdev->dev, "hardware reset not finish\n"); dev_info(&pdev->dev, "func_rst_reg:0x%x, global_rst_reg:0x%x\n", hclge_read_dev(&hdev->hw, HCLGE_FUN_RST_ING), hclge_read_dev(&hdev->hw, HCLGE_GLOBAL_RESET_REG)); @@ -3451,20 +3451,20 @@ static void hclge_do_reset(struct hclge_dev *hdev) switch (hdev->reset_type) { case HNAE3_GLOBAL_RESET: + dev_info(&pdev->dev, "global reset requested\n"); val = hclge_read_dev(&hdev->hw, HCLGE_GLOBAL_RESET_REG); hnae3_set_bit(val, HCLGE_GLOBAL_RESET_BIT, 1); hclge_write_dev(&hdev->hw, HCLGE_GLOBAL_RESET_REG, val); - dev_info(&pdev->dev, "Global Reset requested\n"); break; case HNAE3_FUNC_RESET: - dev_info(&pdev->dev, "PF Reset requested\n"); + dev_info(&pdev->dev, "PF reset requested\n"); /* schedule again to check later */ set_bit(HNAE3_FUNC_RESET, &hdev->reset_pending); hclge_reset_task_schedule(hdev); break; default: dev_warn(&pdev->dev, - "Unsupported reset type: %d\n", hdev->reset_type); + "unsupported reset type: %d\n", hdev->reset_type); break; } } -- 2.7.4