Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3664982pxb; Mon, 1 Feb 2021 01:05:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm136MGKQaMu+1iwetbX67KgrwVfO25sT/HsUjkBnCmrKHBCSg2X/gioxvLYW5h8abZQdi X-Received: by 2002:a17:906:1bf2:: with SMTP id t18mr17394936ejg.166.1612170308621; Mon, 01 Feb 2021 01:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612170308; cv=none; d=google.com; s=arc-20160816; b=qc3YDgOc0lPAkHiqwIkNaHIQtnHQLjxAZF4AcCkT0M0bAc24eiqSokg4qg7UTUX+V6 jKIrlsXhzYSYt6ZTX59uIsUOszDXL7AkZ5gFJhSQRXWLlovtb+Dio8u86FEbj0j5TULJ aEKcaacFXQAbWF4xomtjwjUvZOXpPg8ULYOyqXlW7z5fGStkb48WAvfwVGRPnaiQNxag EMjjRytd+Ce7cFMes5ciJZ60BjFc1qf0oHV1LrPwaMuZfbRRgLVT3Rjot3QBTbavSnC5 XHv/DZR0E9J+xf9tLTorerdnVaZ1HLVktVuUSFFqqRKSv3bMhH0kXm9X3HSl+zZx43oM zcGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=ToLwJRD4UxZjNpGfb3cboR+GWoPA2k1KGynQOg7+1Xg=; b=pJp7TM9I84kTSP3ygpYC1zj1ZiLqkOzuk4hQ/ojeED0k3rhVa8TOrQ7i3ynjKM0sWf cK/qEwcTI1BHFuMWEjEsQPmMCC7h+mKl8g28ZABx9vFQhytvyKdfurVUpS1UnEXMkccF RpcSvGLlN54RwTAmIm0z4xvXA/bjLWiiHC3VGfOUDIc/GjgMDvgqezGdk8PPYERAShgW 1kjP7YlLR0sh8N24gxm95ANFaFulDxn5CPR525Vm1fEWYXlW83nS3BHARIFretiwK+6U 6af4pG1PTLE3Bu0P42Ukq6B97K2CKAYns2/PQxjT352ofhEKvVcy/anYGrE3ChO3K3RE OGdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="RoE/fNvJ"; 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 z2si10715512eju.570.2021.02.01.01.04.44; Mon, 01 Feb 2021 01:05:08 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="RoE/fNvJ"; 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 S232593AbhBAJDp (ORCPT + 99 others); Mon, 1 Feb 2021 04:03:45 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:47911 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhBAJDm (ORCPT ); Mon, 1 Feb 2021 04:03:42 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612170209; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=ToLwJRD4UxZjNpGfb3cboR+GWoPA2k1KGynQOg7+1Xg=; b=RoE/fNvJbLxvI+vHEpd0vE7UPG5CaGzWwTpGTiAd23VDUdMdURPwkYS4KFGTz0+JFeBZgTjy Hw05BQ4lEB5k7S1ED7GvMXFMGKkd8pcp5ps7BjreC8RSir+D9NQm6Ouj7l4bt0dSm9VubY/U ZadrK18bF/YGx0q8l2OWhj5rIO4= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 6017c3a3ab96aecb9f83a662 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 01 Feb 2021 09:02:27 GMT Sender: nitirawa=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 91DC9C43461; Mon, 1 Feb 2021 09:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nitirawa) by smtp.codeaurora.org (Postfix) with ESMTPSA id AF2F2C433C6; Mon, 1 Feb 2021 09:02:26 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Feb 2021 14:32:26 +0530 From: nitirawa@codeaurora.org To: Bean Huo Cc: cang@codeaurora.org, asutoshd@codeaurora.org, stummala@codeaurora.org, vbadigan@codeaurora.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, nitirawa@codeaurora.org Subject: Re: [PATCH V2] scsi: ufs: Add UFS3.0 in ufs HCI version check In-Reply-To: <63f00f514f1e912b8fb1d0c183e9167b60b3a5dc.camel@gmail.com> References: <1611058021-18611-1-git-send-email-nitirawa@codeaurora.org> <63f00f514f1e912b8fb1d0c183e9167b60b3a5dc.camel@gmail.com> Message-ID: X-Sender: nitirawa@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-30 00:55, Bean Huo wrote: > On Tue, 2021-01-19 at 17:37 +0530, Nitin Rawat wrote: >> As per JESD223D UFS HCI v3.0 spec, HCI version 3.0 >> is also supported. Hence Adding UFS3.0 in UFS HCI >> version check to avoid logging of the error message. >> >> Signed-off-by: Nitin Rawat >> --- >> drivers/scsi/ufs/ufshcd.c | 5 +++-- >> drivers/scsi/ufs/ufshci.h | 1 + >> 2 files changed, 4 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c >> index 82ad317..54ca765 100644 >> --- a/drivers/scsi/ufs/ufshcd.c >> +++ b/drivers/scsi/ufs/ufshcd.c >> @@ -9255,8 +9255,9 @@ int ufshcd_init(struct ufs_hba *hba, void >> __iomem *mmio_base, unsigned int irq) >> if ((hba->ufs_version != UFSHCI_VERSION_10) && >> (hba->ufs_version != UFSHCI_VERSION_11) && >> (hba->ufs_version != UFSHCI_VERSION_20) && >> - (hba->ufs_version != UFSHCI_VERSION_21)) >> - dev_err(hba->dev, "invalid UFS version 0x%x\n", >> + (hba->ufs_version != UFSHCI_VERSION_21) && >> + (hba->ufs_version != UFSHCI_VERSION_30)) >> + dev_err(hba->dev, "invalid UFS HCI version 0x%x\n", >> hba->ufs_version); > > Hi Nitin > Except HCI 1.0 / 1.1 / 2.0 / 2.1 / 3.0, do you have the other UFS HCI > version? if no, current driver supports all of them, instead of > scaling these check, and avoid logging of the error message, I suggest > you can directly delete these redundant checkup. > > If there is a weird HCI version that not supported by the current > driver, you can only add an unsupported checkup list. thus, you don't > need to scale this useless checkup. > > Bean Hi Bean, That's a good suggestion. If nobody has any concern, i will post new patchset by removing these redundant check. Regards, Nitin