Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3176511pxj; Mon, 7 Jun 2021 04:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIezGV+k0pLGeONM7PJwpnEoblCBKWvYKlyInbe1xkR7yrIl+v6sCCAbDKnTGd1w691lmp X-Received: by 2002:aa7:d6ca:: with SMTP id x10mr19392201edr.182.1623065115496; Mon, 07 Jun 2021 04:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623065115; cv=none; d=google.com; s=arc-20160816; b=JLgD8OVbKLiE6rQaA1OHznVp0R6jJQgnzVzpxKvUMwai1OQW745zTD+G3C8KO0BK7F lm+A3TSUA4cojruGtQFzPM8taUOYpbOmruuUmCHxDcaETMuz88i8q9B6CWyAYwFp5Pb5 VPtR/goftmN3iMDrAwC86kV6OXoNEf49myJ87QL81A1b+Kr5of4NZSzSp89e83ztKjRX CDX5Vl0qiyUmC60LKSGs5WMYB7L3OStWx+M4ivYydyP9xY5WeYjX1WIk7zGaKtRSAj6A dlns8WM4+cFr1fp3GbDnPpxAf7Vkt+I7/MMWot+rbdWCS5v7WsPI2Bs7wiCIqfLelSM6 W4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5ccGktyJLOm8eDUVk4HeOHl9OmCZwBiDDxt7BJFpBNU=; b=wtblUC/AYHckqatQjulCOURWX02eN6IsieYGjoN6+/0dZHyHxUdjXEkaqmXILY1edk mycJN9OclE7GRcbOT119uyX/up/8b0t7RZiUKn8UoxnxryITI7RDYneHK5M1XxzhvAUZ gStd7JBsag1XdYB2jQrZqGWlll6HvJpX+1HHjm5re4IusBcd6S5+yPEQV408hRqoas9i LOakgiEZuaEMRGbZnUNrBKRZBUZNmUkpuOAnxnZhfYXYcoZzxvo8f2d13TlWdyhZdPSY /xS8zXOsnkD28inU/Iy6ttFOye8jCuebkyZD7uLpe03h6NYZwWYtPT8qKwUc+Djy4UoB NnTw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm15si4198669edb.472.2021.06.07.04.24.51; Mon, 07 Jun 2021 04:25:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231506AbhFGLXQ (ORCPT + 99 others); Mon, 7 Jun 2021 07:23:16 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:4338 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhFGLXN (ORCPT ); Mon, 7 Jun 2021 07:23:13 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Fz9mb36hFz1BKml; Mon, 7 Jun 2021 19:16:31 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 7 Jun 2021 19:21:20 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 7 Jun 2021 19:21:19 +0800 From: Guangbin Huang To: , CC: , , , , Subject: [PATCH net-next 3/3] net: hns3: remove now redundant logic related to HNAE3_UNKNOWN_RESET Date: Mon, 7 Jun 2021 19:18:12 +0800 Message-ID: <1623064692-24205-4-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623064692-24205-1-git-send-email-huangguangbin2@huawei.com> References: <1623064692-24205-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yufeng Mo Earlier patches have decoupled the MSI-X conveyed error handling and recovery logic. This earlier concept code is no longer required. Signed-off-by: Yufeng Mo Signed-off-by: Salil Mehta Signed-off-by: Jiaran Zhang Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 - .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 89b2b7fa7b8b..dc9b5bc3431b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -243,7 +243,6 @@ enum hnae3_reset_type { HNAE3_FUNC_RESET, HNAE3_GLOBAL_RESET, HNAE3_IMP_RESET, - HNAE3_UNKNOWN_RESET, HNAE3_NONE_RESET, HNAE3_MAX_RESET, }; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 4b1aa5c45852..45102681bd2a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3792,28 +3792,6 @@ static enum hnae3_reset_type hclge_get_reset_level(struct hnae3_ae_dev *ae_dev, enum hnae3_reset_type rst_level = HNAE3_NONE_RESET; struct hclge_dev *hdev = ae_dev->priv; - /* first, resolve any unknown reset type to the known type(s) */ - if (test_bit(HNAE3_UNKNOWN_RESET, addr)) { - u32 msix_sts_reg = hclge_read_dev(&hdev->hw, - HCLGE_MISC_VECTOR_INT_STS); - /* we will intentionally ignore any errors from this function - * as we will end up in *some* reset request in any case - */ - if (hclge_handle_hw_msix_error(hdev, addr)) - dev_info(&hdev->pdev->dev, "received msix interrupt 0x%x\n", - msix_sts_reg); - - clear_bit(HNAE3_UNKNOWN_RESET, addr); - /* We defered the clearing of the error event which caused - * interrupt since it was not posssible to do that in - * interrupt context (and this is the reason we introduced - * new UNKNOWN reset type). Now, the errors have been - * handled and cleared in hardware we can safely enable - * interrupts. This is an exception to the norm. - */ - hclge_enable_vector(&hdev->misc_vector, true); - } - /* return the highest priority reset level amongst all */ if (test_bit(HNAE3_IMP_RESET, addr)) { rst_level = HNAE3_IMP_RESET; -- 2.8.1