Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp606018pxb; Thu, 17 Feb 2022 10:37:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJIUyjE99t6GN1Dne8De7N5AdrVeFVdLSRX2zYhXDPvrDW28c5YTkUV+XoOFzXaKhaYhzR X-Received: by 2002:a17:902:f281:b0:148:b21d:bf92 with SMTP id k1-20020a170902f28100b00148b21dbf92mr3925625plc.16.1645123060104; Thu, 17 Feb 2022 10:37:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645123060; cv=none; d=google.com; s=arc-20160816; b=XfsiDqwSBP7zhqAlhMSvtGMwD9uZE9UXYAwPLyJnPXVH74dEl1Id+I3nvVPBMmBWXt 5xzzdZzaT0JajYaN4mZz+jRUsxwX2W7hPNUswzqyjUZvSsqVXfwRbl/V87leJQOuH76r KzL6Vv7AIUt/szxshzIda6wMbiRqlR4ZRw771cwK+9zPwhtJoLF4uOtCB0EqSjhVPFiW k0wSozhJMeDLz1PB9xq3iQdrMEiYdhDHE1FRvuRb2n8r9PutzhCbU4xe+WDKZFHjbyzw 2aS6vdOxzt4gjgD3Zwg7MkT+Ppty9YN3EJUTQ2wTm89MR4SvPNc2wUKC6OT4TD7jK9kO XcfQ== 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=9ED1S2nzmZQ4hSbEu75gpqA/bSNijlP8j+NmgzSXDnI=; b=bgGtDxQQ0Ef0DuXDzHdQoVNXC/7QPwfCP1elxSGCXK/MfCEQxuFkOJHS7q281jKQ5Y RICAt73Z241GamBu4aM/XpyPSh7Ur9uavfpAebH/Mfcu/EFoxOiH8xYTgwZ2gY5gV66G 1s7K3avxbgz/HGVuSDQS3UpvSQJhSstXLmpI/FVj64rIM3FWyhVTZroHqn08PoN5VSE6 sdkItxQ2sF1JPHFx02eP/LZSFgCbiXqrXQmKgvgICsOt84kD62zQsOar9lxSI9ayKDZ+ CU5K8B7KkmbF/UJZIg3RjaWpw88DXEQL7IIPiCb6pbai0msw/VNLTGlzhTtjaXc1/lBz VWbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x124si2984844pgb.868.2022.02.17.10.37.24; Thu, 17 Feb 2022 10:37:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242757AbiBQPtD (ORCPT + 99 others); Thu, 17 Feb 2022 10:49:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242733AbiBQPsz (ORCPT ); Thu, 17 Feb 2022 10:48:55 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E14154703; Thu, 17 Feb 2022 07:48:41 -0800 (PST) Received: from fraeml708-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Jzzdh6dqDz67ySC; Thu, 17 Feb 2022 23:44:08 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml708-chm.china.huawei.com (10.206.15.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Feb 2022 16:48:39 +0100 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Feb 2022 15:48:34 +0000 From: John Garry To: , , , , , , CC: , , , , , , , , John Garry Subject: [PATCH v2 04/18] scsi: libsas: Delete SAS_SG_ERR Date: Thu, 17 Feb 2022 23:42:32 +0800 Message-ID: <1645112566-115804-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1645112566-115804-1-git-send-email-john.garry@huawei.com> References: <1645112566-115804-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No LLDD sets exec status as SAS_SG_ERR, so remove support. Signed-off-by: John Garry --- drivers/scsi/libsas/sas_ata.c | 2 -- drivers/scsi/libsas/sas_scsi_host.c | 3 --- include/scsi/libsas.h | 1 - 3 files changed, 6 deletions(-) diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index e0030a093994..71b42fe95b6f 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -52,8 +52,6 @@ static enum ata_completion_errors sas_to_ata_err(struct task_status_struct *ts) case SAS_DATA_OVERRUN: case SAS_QUEUE_FULL: case SAS_DEVICE_UNKNOWN: - case SAS_SG_ERR: - return AC_ERR_INVALID; case SAS_OPEN_TO: case SAS_OPEN_REJECT: pr_warn("%s: Saw error %d. What to do?\n", diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 19cb954afd80..387083a16a79 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c @@ -67,9 +67,6 @@ static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) case SAS_DEVICE_UNKNOWN: hs = DID_BAD_TARGET; break; - case SAS_SG_ERR: - hs = DID_PARITY; - break; case SAS_OPEN_REJECT: if (ts->open_rej_reason == SAS_OREJ_RSVD_RETRY) hs = DID_SOFT_ERROR; /* retry */ diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 8026c1bb57ba..cd2b2b67bf93 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -492,7 +492,6 @@ enum exec_status { SAS_INTERRUPTED, SAS_QUEUE_FULL, SAS_DEVICE_UNKNOWN, - SAS_SG_ERR, SAS_OPEN_REJECT, SAS_OPEN_TO, SAS_PROTO_RESPONSE, -- 2.26.2