Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp984551iob; Fri, 13 May 2022 18:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo8tqWDGMXjz5sDKFrdhXGADNHwgY8ETmI2T1627N7SY+neRs+cN68L/FZ/7fxx48dqS6S X-Received: by 2002:a05:6000:1689:b0:20c:4fa1:ffb7 with SMTP id y9-20020a056000168900b0020c4fa1ffb7mr6186459wrd.48.1652492129109; Fri, 13 May 2022 18:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652492129; cv=none; d=google.com; s=arc-20160816; b=mQTYo1dGRQOxKL2xRm/m4ET6xIo/meXAUFlp0EeJpmv/79weH69GoX5IB9X+krLhiP YT5z1YsDy4m5Oiw8K0CtcAFk5zw2BndD2SqL1m5GyrRI99T2fWfAjs6S0RtoJDkgpdtW 6Xg52ZoYyepGnd1PfAF60aEBfpucUG3PobOwqT/mU29z/MHu5joigYTZIakNnKYVFpQA o50km9C4+KLqQ0ACYPZnPVJA/U2LQDanBZ/6trFtccqsXRhsHuqIy+DD974LANTNm0/O dgApz6NVaLnbEVSMZibh6hxFhwiVLBM/zfdUNYZqBUfG3nrYve2GTaA6r7JScq7dLgxf POuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=MhqPsZp9vExyShlh6EhBzQAX3iNH+1vFFShDBCnihvw=; b=Fm5OsXS0euBHjs+B+dedVcROXSJfAOGt9xFADYCARkC9OOgUetrs8AD/a4EGBtb/ni D4hzq1hfJ5TeYcrMGsRB/C1vDvskAWYceLho0EajfQDCyZbbbKQkG7+oSbjX9jssZyX0 doLrppGR2x0bsAbODdhRgp9pedqsErgol0MDf619V5pco9BAD9IOdawn2oyUnGtd/nlz ErQHhIq5+O5dRUn6FFtWaAi1/8WZiIsqncUPDAbYF3ChCoDuTRZBMVF5D3Iw82N3KC3l IdzLigNPMuUq9jTn6PfBEr+Zik3RAUB9mQ+oJpResUIw8rzkjSTipWK/t8oL6sC88VdH v73w== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r2-20020a5d4942000000b0020cdca117aasi3209239wrs.227.2022.05.13.18.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 067351FE1F7; Fri, 13 May 2022 17:02:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353338AbiELLWb (ORCPT + 99 others); Thu, 12 May 2022 07:22:31 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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(-) -- 2.26.2