From patchwork Fri Sep 6 12:55:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 173231 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp600381oce; Fri, 6 Sep 2019 05:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXaE9ca4JQFUPYXOC01df8xbgn3nqQkXLwc/e09sUzMkWHp0QiF2IR+sWBDntw3QFC87+a X-Received: by 2002:a62:8344:: with SMTP id h65mr10406001pfe.85.1567774712919; Fri, 06 Sep 2019 05:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567774712; cv=none; d=google.com; s=arc-20160816; b=F8+eKdPUHYsh6eW+6Bs89R9NGLDAwSYR2rYZYgV8GrV3qlXVbS4uWxgceFNQFUaF0f TunPN43KbdghctElxehDmPcPpuc0phboZ+vk2x6ZncG2579OgMmbpVx3tmnIJ1d+BVKH e3wBRoO0CCYZJQI3ut2npdvzNec3cKVSlxgHpqUDVsowx9jBZ0z4sRXvKVNJf6nL3wxu n3GCPjMBgLLHgwLzpTsANN+dIjoQppvlrG9b6bxKfMRr5lHfBhoJsZhN7IHlynYcMlpi YKjXi4GdXPa040myw+pPbt2Zj7Vt+T64ejpRQ6CJFgcowCcDAGhgxZarFJiwj8PzwbQ+ ycew== 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=QXQEZGHnn/1klZAHJJJ7SbJJsej5Pn/5X8m1iq/OLMQ=; b=aWD486JEEoHbys6wWbcE4CZ8sJUjCw9BvBHJFTYNAc4embLmQcnCY50pH9TrCoV3zQ kX35THffNHg/aZQxhFzgMzRANOlD5VUyHIvWCgLJOcuHsvSM52LAmM8x5for2STfgSM0 f014sr2R4+nQPya/5bdwngUIcfd5QMa+4PjIozldjjKe4duRGD1RpE4qAEpLxqhm+fN2 oHfR6V+VODk+rjuqwNyeimrWl7o+PyFMby3nSAN1tVfXpQ0TTtuUwc8xPSP/Wcbgqu3R bHgXZeO1y4yVGgr97qRzkoqeHe8Ny55nhquNS3lt+lAJn/621gWbRmbKSjLAC91XI6vT L3uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 76si4555379pgh.564.2019.09.06.05.58.32 for ; Fri, 06 Sep 2019 05:58:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404945AbfIFM6S (ORCPT ); Fri, 6 Sep 2019 08:58:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6694 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404925AbfIFM6R (ORCPT ); Fri, 6 Sep 2019 08:58:17 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BD62D6FC6103E3B89F76; Fri, 6 Sep 2019 20:58:10 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Sep 2019 20:58:01 +0800 From: John Garry To: , CC: , , , Luo Jiaxing , "John Garry" Subject: [PATCH 02/13] scsi: hisi_sas: Use true/false as input parameter of sas_phy_reset() Date: Fri, 6 Sep 2019 20:55:26 +0800 Message-ID: <1567774537-20003-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1567774537-20003-1-git-send-email-john.garry@huawei.com> References: <1567774537-20003-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Luo Jiaxing When calling sas_phy_reset(), we need to specify whether the reset type is hard reset or link reset - use true/false for clarity. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 03e953862412..47faa283312e 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1762,7 +1762,7 @@ static int hisi_sas_debug_I_T_nexus_reset(struct domain_device *device) } reset_type = (sas_dev->dev_status == HISI_SAS_DEV_INIT || - !dev_is_sata(device)) ? 1 : 0; + !dev_is_sata(device)) ? true : false; rc = sas_phy_reset(local_phy, reset_type); sas_put_local_phy(local_phy); @@ -1843,7 +1843,7 @@ static int hisi_sas_lu_reset(struct domain_device *device, u8 *lun) phy = sas_get_local_phy(device); - rc = sas_phy_reset(phy, 1); + rc = sas_phy_reset(phy, true); if (rc == 0) hisi_sas_release_task(hisi_hba, device);