Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp397192ybh; Wed, 22 Jul 2020 03:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7xOnCayY53hGeBSKNav8NbXrK9rZPu9GE+Q0TM7adOCv42p9dLx0sbCMNiJyO69EsRBni X-Received: by 2002:a17:906:a459:: with SMTP id cb25mr29282208ejb.234.1595413822237; Wed, 22 Jul 2020 03:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595413822; cv=none; d=google.com; s=arc-20160816; b=Ep4gnA+DR9VyOqtu2qMSEAfJHHO/Q563UejqoVgIowTF5CYokGaYFI8DgtoXjX3k3C kblufCRWU+BW9AquVCchhgq4YGQnoDRZX4gZJngr8O4X7VzoHh2lefYR9tZPvr3Z9CpZ 0+dWlO+GLJ+e4dH2Po1miRJeOOhmVi1FJJi7XWBtdhN4fPpF5z5XBHPTPyLzgLZWgD6z ZqB65injOFl7O/cdaJE3HbRaU+weaudRTEG502r8VDKYEvJ5G+qTrclqLhuE4eGyuqI/ uLphAv3JGQTXWZPeuhCYcb2tAnWQVDHc0Rru/DdLvn5YGz+P99PemnucbwQgv3QyUqoy wr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=2uTlDIk1v2nfu7hlMccdKSy3G2iUoE4qC7Gu43xYR1c=; b=HtADuZm79sqiaU+v4/tQFlEqXtQs8WL62vM8e2ZD7fY39XLAazF9wrqVtj5wtBo+vW gxr0sfsCPBfGJ/jC7jIfkq91eRoeDi4NhQ6kBnSOUWT+2IJRI+HjSDKXAzdlNEx2Hy+f mTXbKMspV5GwiH/nMsTfavuuNBkHXDkyL9ttPaOSGlUdSFfXaEca8hR3EwjVXNBLewbS nWdja7TkWS9B2/kapfz/EoFdXpfT1daphUIS0jQKGYjwXtnhJWPfDvMrNxtl+eb1XZx6 EXLtzURXoN+8Dyjy07zRanvkPBHTylmt4Vg+56NTTkIzd2u6mx+ZY3AXwx15FMM/s6X9 NRMg== 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 j9si13910137ejk.711.2020.07.22.03.29.59; Wed, 22 Jul 2020 03:30:22 -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 S1732054AbgGVK1Y (ORCPT + 99 others); Wed, 22 Jul 2020 06:27:24 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48156 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729864AbgGVK1Y (ORCPT ); Wed, 22 Jul 2020 06:27:24 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 32F7A529B907B31831DB; Wed, 22 Jul 2020 18:27:15 +0800 (CST) Received: from [127.0.0.1] (10.174.179.92) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Jul 2020 18:27:05 +0800 Subject: Re: [PATCH v1 1/2] {topost} scsi: libsas: delete postreset at sas_sata_ops To: Luo Jiaxing , , CC: , , , , References: <1595408643-63011-1-git-send-email-luojiaxing@huawei.com> <1595408643-63011-2-git-send-email-luojiaxing@huawei.com> From: Jason Yan Message-ID: <53b95bb4-c129-beff-9bc6-02225db2e762@huawei.com> Date: Wed, 22 Jul 2020 18:27:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <1595408643-63011-2-git-send-email-luojiaxing@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.92] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/7/22 17:04, Luo Jiaxing ะด??: > 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, > Hi Luo, Please remove the "{topost}" in the subject, other than that: Reviewed-by: Jason Yan