From patchwork Wed May 2 15:56:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 134842 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp846531lji; Wed, 2 May 2018 08:57:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpYQgiiv3R4p/MudMhYKFTam34EgBJcCbP+gr6NzxR5r2VPK4Vyaj5b/q0PfZ2dNkwVpvGm X-Received: by 2002:a17:902:f44:: with SMTP id 62-v6mr20808255ply.318.1525276672236; Wed, 02 May 2018 08:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525276672; cv=none; d=google.com; s=arc-20160816; b=yrqB39KG51dDdkRjwSAlagMVya7wTQiYkZ8uq0PtyNnEJAE/I+RlFcVrI/WNF6OaPA xcdqLrYsie3lyE3h2wMTneazAUnPhDoAe2w3r73IrQ5stsqu5Udt6v1d+8l1DSsc2Uvt XPet3d8RJW44SNRR1ksYAprwbBjrlYXrAGMthdjTw7yN4cIbChW1fhqYFB0y3eGCFkNA hw5ZDr4UNW3jChUN3WED8xksaPBK8IxBoB74GnxNMhY4aggQikoiwxh4SRgFiiTvWWWq GT/EBMGaZQiJbrRpKTxZZCi3bgwgCJOfPmRv1+76jRdeTd9m7OoVfPaiKZ1T2+BqGPVN evvw== 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=5ABjSvVEYqS65ddZNd6FQqv99lNk9tHviBWKOOXTJxU=; b=AeveDpnHWCP86s8UkewiNV+MPTfAelH9JDwiKFnIHdASyVC6U6jSNYnrEJ3ime+ZnN c/ig//1IJ79Uf8t0HgeKLztsOAvGx+KzDJ3TPFu4Nv4CPNVm7etdZccgUtHuV0qyA1tk z7PY0KFbxjm3z3NW5ChMSkaBICWgO04gTHeCokI30Gw2bqxx1A4yQA/AR6ThH0xIUHlb 9duqjFn+gD2Gr3dqDOLnt/9XIvC0nrhcdPYhIBqhUQ5XeNz1W7x2dV7EBcmwelUvmY5j q4z5JDjFO46Y8n28fgQIOPC948wJZXyrNtDprEne5+cowfP7TL2lXurHuAw7pbj0OmyY TF0g== 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 p11-v6si3058066pgn.267.2018.05.02.08.57.51; Wed, 02 May 2018 08:57:52 -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 S1752112AbeEBP5t (ORCPT + 29 others); Wed, 2 May 2018 11:57:49 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7221 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751988AbeEBP5q (ORCPT ); Wed, 2 May 2018 11:57:46 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 35AA6C28C3DDB; Wed, 2 May 2018 23:57:27 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.361.1; Wed, 2 May 2018 23:57:18 +0800 From: John Garry To: , CC: , , , Xiaofei Tan , "John Garry" Subject: [PATCH 09/11] scsi: hisi_sas: remove redundant handling to event95 for v3 Date: Wed, 2 May 2018 23:56:32 +0800 Message-ID: <1525276594-92173-10-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525276594-92173-1-git-send-email-john.garry@huawei.com> References: <1525276594-92173-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiaofei Tan Event95 is used for DFX purpose. The relevant bit for this interrupt in the ENT_INT_SRC_MSK3 register has been disabled, so remove the processing. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 026faee..d6e705f 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1331,14 +1331,9 @@ static irqreturn_t int_chnl_int_v3_hw(int irq_no, void *p) { struct hisi_hba *hisi_hba = p; struct device *dev = hisi_hba->dev; - u32 ent_msk, ent_tmp, irq_msk; + u32 irq_msk; int phy_no = 0; - ent_msk = hisi_sas_read32(hisi_hba, ENT_INT_SRC_MSK3); - ent_tmp = ent_msk; - ent_msk |= ENT_INT_SRC_MSK3_ENT95_MSK_MSK; - hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK3, ent_msk); - irq_msk = hisi_sas_read32(hisi_hba, CHNL_INT_STATUS) & 0xeeeeeeee; @@ -1415,8 +1410,6 @@ static irqreturn_t int_chnl_int_v3_hw(int irq_no, void *p) phy_no++; } - hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK3, ent_tmp); - return IRQ_HANDLED; }