Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1619502imm; Fri, 6 Jul 2018 03:31:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpebKpKifX1iNDNZs0a4/gmqOz0tSCCgFnkuuKeZeFVopP47d/jtb7n0FruzA0MfWBI3jIa0 X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr9642872plf.109.1530873119033; Fri, 06 Jul 2018 03:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530873119; cv=none; d=google.com; s=arc-20160816; b=IqLMS5qobL/9i3T8ignIn0mXBoLLT5U85wJ9sZkvGeB5aLM3rcw3C8Cvdmzj03nizO SvQoO25M0DlN2wObJHdOj+s89dJtdeVa2VWuz0GQiUrLKpgDYucY/W2RYdrLR40XjELR CIg+WWPx0Aerr0pzbEN0DsH+8kDP1zOoCCH+P0sFq6HUCwINIMwTYf7/o29x0T4OKuyl kWInI6exG6xCKClsAeioOVWqWbgUZUBGdDJcbtO2C3MhI+Dab//iy+5NHkXHfZr9o+tY nZ3OdYxRbzxdURYCM600IAONZkvqgBCFEOVMSTWBwrNgp7WjFGa8JEzbsVczD1bQLeL6 jXhw== 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 f16-v6si8168950pff.13.2018.07.06.03.31.44; Fri, 06 Jul 2018 03:31:58 -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 S932679AbeGFK30 (ORCPT + 99 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 Content-Type: text/plain 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(-) 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; } -- 2.7.4