From patchwork Thu May 12 11:15:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 12847600 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC8A6C433EF for ; Thu, 12 May 2022 11:22:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353289AbiELLWA (ORCPT ); Thu, 12 May 2022 07:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353132AbiELLV2 (ORCPT ); Thu, 12 May 2022 07:21:28 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987526437; Thu, 12 May 2022 04:21:25 -0700 (PDT) Received: from fraeml708-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KzTmP3rfYz67xwN; Thu, 12 May 2022 19:18:29 +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.2375.24; Thu, 12 May 2022 13:21:23 +0200 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.2375.24; Thu, 12 May 2022 12:21:21 +0100 From: John Garry To: , CC: , , , John Garry Subject: [PATCH 0/3] hisi_sas: A device rescan and IT nexus reset fix Date: Thu, 12 May 2022 19:15:31 +0800 Message-ID: <1652354134-171343-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi, This series includes 2x fixes for the hisi_sas driver: - In issuing an ATA softreset in the IT nexus handler the disk may become lost as we may issue the softreset before the phy is back up. So export functionality from sas_ata_hard_reset() to wait for phy up to synchronize. - For host rescan we issue a nexus reset to the disk which is unnecessary, so drop it. In addition, usage of the device status flag needs to be fixed. Please consider for 5.19, thanks! John Garry (3): scsi: libsas: Refactor sas_ata_hard_reset() scsi: hisi_sas: Use sas_ata_wait_after_reset() in IT nexus reset scsi: hisi_sas: Fix rescan after deleting a disk drivers/scsi/hisi_sas/hisi_sas_main.c | 66 ++++++++++++--------------- drivers/scsi/libsas/sas_ata.c | 41 +++++++++++------ include/scsi/sas_ata.h | 7 +++ 3 files changed, 64 insertions(+), 50 deletions(-)