Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp376133pjb; Wed, 22 Jul 2020 02:09:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnaIyralLJ2J1Vd5tr2WF4mmBSQX8AS6cLqOrufBt3aiWy52jBKV7VUn7rTXWMk7/TBLmk X-Received: by 2002:a17:907:1114:: with SMTP id qu20mr138953ejb.41.1595408957431; Wed, 22 Jul 2020 02:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595408957; cv=none; d=google.com; s=arc-20160816; b=rtOdHfRzBtXOy+i5hdyuOKoH8JqqJigvEC2MS6ac4Lr8Oh6dMsemAejQ96X5LWWXuT 4vphJExEvFpM1gLzC4Nqg8qfl4F9RvUGiItiREAmV6t8ANkaoTxBxoXgGrhv5PLxtpFN s3XqrhrN47xyFM7Pbteq5V3yeKPlnbDTPy2YEuOoQFmmYRE/rW4YTgNHxMHqmTcPrU/+ NBKkF0pST2+UCgaKaS8qRdfN/lWGe9Bm7+QsRYpbcSApmeYyFRHV6gOjl60skIrmgw4q /4uJNIVBzWivuMEcd4Ps4bUmN3cKT44z8se2BemctF7zid3qYCz37gi1ff3qhI1NWQa3 pNYw== 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; bh=Oujstuf16js6R9gs3UYJ6c/o6MUxEvGeJD08z+SQviw=; b=qXrugAsYymBO2UbeVidWK4kQkYp4BybZ5XUsMbqsjw6p6pJYhRqFZUgODTZTnI2T38 rblqW2XMsk/G69B6If8w4hZbkDPdmugzOmsmz9N7m7VRE3NdOM6bKfNel/qFNDqBkRpy 6jnKGIcq5DhePqstwT5I2g9FwjS96HVAz8/yjYNs0P4FzVpViXuczYw1zmkiNDXMBn8u szrcU5d8QDNcaCH6QIzjolMSoi3wECuii6M9FFEgamqQOFOCdY/SoiIfUtuVPrPU2/mO 1C9XM7FTo1XKfgNRiab3NCNlRlg9cpOd+C343n5w7qXBT4n08niMAuRiwVEQzt3CmBXX 0wVA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si13825808ejs.512.2020.07.22.02.08.53; Wed, 22 Jul 2020 02:09:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731133AbgGVJGC (ORCPT + 99 others); Wed, 22 Jul 2020 05:06:02 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51982 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726870AbgGVJGC (ORCPT ); Wed, 22 Jul 2020 05:06:02 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DA87E38B4DC8F5CDD7E1; Wed, 22 Jul 2020 17:05:59 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Jul 2020 17:05:52 +0800 From: Luo Jiaxing To: , CC: , , , , , , Subject: [PATCH v1 1/2] {topost} scsi: libsas: delete postreset at sas_sata_ops Date: Wed, 22 Jul 2020 17:04:02 +0800 Message-ID: <1595408643-63011-2-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595408643-63011-1-git-send-email-luojiaxing@huawei.com> References: <1595408643-63011-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We fill postreset with ata_std_postreset() at sas_sata_ops before, but we found out that ata_std_postreset() call sata_scr_read()/sata_scr_write() which need to access SCR register. Actually we don't own these kind of register, so sata_scr_read()/sata_scr_write always return -EOPNOTSUPP. We drop ata_std_postreset() at sas_sata_ops. Signed-off-by: Luo Jiaxing Reviewed-by: John Garry --- drivers/scsi/libsas/sas_ata.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 5d716d3..a7d16d2 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -510,7 +510,6 @@ void sas_ata_end_eh(struct ata_port *ap) static struct ata_port_operations sas_sata_ops = { .prereset = ata_std_prereset, .hardreset = sas_ata_hard_reset, - .postreset = ata_std_postreset, .error_handler = ata_std_error_handler, .post_internal_cmd = sas_ata_post_internal, .qc_defer = ata_std_qc_defer, -- 2.7.4