From patchwork Fri Jul 6 10:28:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 141290 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2946126ljj; Fri, 6 Jul 2018 03:30:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfhISGgX0yfaO/2TXZ5nWApBhhOJ6qhBxS9RLnCd6wN+2TtB+pRdQGElQ3QSEWTfPjFobSS X-Received: by 2002:a17:902:8506:: with SMTP id bj6-v6mr6301470plb.210.1530873034084; Fri, 06 Jul 2018 03:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530873034; cv=none; d=google.com; s=arc-20160816; b=Ra9/v8UBWIg6g79LnucSrRN8QsataCG74Kt6to0vyf1rjs4UYPmwYmoNF8T2QSAJEo 2TN50xx3mafZRUAUAb+fNhJg+/9UEur4qrYOK2IDiH0/MAE6PLD0PcYzxGRWe1m3f/W3 SVWquwS2N/2z2ZhV7z6j1KI2THiqZAKpe8KvqVP5B3awcVuwp9eGzlQ3qx41agLSQ1kC IDR42R4knDeldt0f0OPwMVA38MrvLq9fcbMYoW78sud4ulB9T5YqdLZBz/VxODRvPeHe omSTfuxyH9ekGFSgF9D7MxJjBCAFOEZr21vkB4wKuimDSrjs5YLRXNmrDM+grKLzLGv3 YGaw== 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:arc-authentication-results; bh=bHJOWDssDiJj0eGnmPnXr/kvT/vN2wLLEVcuwZ2gjNU=; b=S/pEscu5uvS58VaJrgPPG6EPt/7QjLXrW2pNSIZSzPwtAGG6L9UuJkQRcgrqmO966J xnvqDE15mZD7gqg/vO5uUfnboOYdQL612lN5vZgLK+Pu4ELHH/HUQlBROVG0o6ckXNO2 8NqMppAFQUMaN153UuG9J4AFCGPhCWqYld0ogNZb8oG71qfw99QBTtV6yIJ9CdTOwJcN lVH9DdZNvfmNBtqSi2XGkhDXwU1ebi6RnmnH5VC9qSeUkRJbllB+IL+ca7vUxhGeoZ62 FOVZMl9iRlVp74ZTamJDkeVt+8R9yEXUp2nJ0xIrG4HJWA/P1de3UON6S3zTP0n/mLdL HZoQ== 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 31-v6si8224915plc.173.2018.07.06.03.30.33; Fri, 06 Jul 2018 03:30:34 -0700 (PDT) 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 S932702AbeGFK30 (ORCPT + 30 others); Fri, 6 Jul 2018 06:29:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36156 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932612AbeGFK3Y (ORCPT ); Fri, 6 Jul 2018 06:29:24 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 20AE4B636EF85; Fri, 6 Jul 2018 18:29:21 +0800 (CST) Received: from S00293818-DELL1.huawei.com (10.202.226.54) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.382.0; Fri, 6 Jul 2018 18:29:12 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH net-next 09/10] net: hns3: Remove the warning when clear reset cause Date: Fri, 6 Jul 2018 11:28:03 +0100 Message-ID: <20180706102804.196-10-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180706102804.196-1-salil.mehta@huawei.com> References: <20180706102804.196-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Only the core/global/IMP reset need clear cause, other type does not need do it. The warning may be treated as error as it is normal. This patch removes the warning. Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index df6a7a1..4ca3e6b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -2805,8 +2805,6 @@ static void hclge_clear_reset_cause(struct hclge_dev *hdev) clearval = BIT(HCLGE_VECTOR0_CORERESET_INT_B); break; default: - dev_warn(&hdev->pdev->dev, "Unsupported reset event to clear:%d", - hdev->reset_type); break; }