Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp373510pxb; Fri, 8 Jan 2021 07:11:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJygwYojuVBr0GqA+wjInE+sBxWyObG1Phkiu+mxjAEpmlRdSIc5ka5zfOEeVrDYo8aEGJd6 X-Received: by 2002:a17:906:5796:: with SMTP id k22mr2833200ejq.435.1610118677628; Fri, 08 Jan 2021 07:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610118677; cv=none; d=google.com; s=arc-20160816; b=hamFQ+B+A0jdRp7OFGm7R9g4WnTjU4f9XImM79zxMmUUbnjE2dZ9DYYdyk2QbPZQSb H/oHh2R9YaSlePj5repqLgo4nD7jBrzjyo5kp4AJydgDSX07Kq9Bwhg3z02qYzm1BsDJ oTD+Zhq46OuZ1e6iHDKpa0yEHGNFnXIswm9xcSIrgm4pDNSoC0UfYrWRxNhrI6xj8/OT mxRzWFrR7BtCnJJZ5YtTrdd11OlEo4rn79+SHEk82MCq8FI0h6O3J5RS7YFcfN/c64+R HCTbNq0Lr1iYmUkbrfhZmtAlcPjRCX6HEQ9Xbrnkb/BsbGejhpnJseuPykxyQhtgqdLK yccA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=wArXwzj4VFX3pZy44rdmFZgGvPbhwu9K/FUe8cL4leA=; b=QlFHk+OtKnJ0jVsdTnN+h2jGCpIuxM8lDUgJMMqGquuqZXV+HCQUTqV05wByz1NU6J qbF8QMHEsIflHvnKL1wge6y2vyePMtvsvWOW8ZIuCN1b3CkbdSlJvJPCVDput0NSiqhM UeiSYN6XKwdAsOdc0jd6hq7yPH8IomN33iPomGzQCMWGr6BWXDAYMfsz0zFloQRoOYbN /H5/7a/cg+Ih2NP0YhD87AeEcVamQxgewIvqW69ncARer8WpmizPDl8VJzOEmh5Ocuh6 crS4jc6/AbxYEFcGuPNwlmVYe+LlMyD1dNBQ9JPF1/04fN/r76PNSxzzl0ZJ23c9z6WV MKJw== 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 u22si3630758edx.500.2021.01.08.07.10.47; Fri, 08 Jan 2021 07:11:17 -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; 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 S1727475AbhAHPI7 (ORCPT + 99 others); Fri, 8 Jan 2021 10:08:59 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:7185 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbhAHPI7 (ORCPT ); Fri, 8 Jan 2021 10:08:59 -0500 Received: from ironmsg07-lv.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Jan 2021 07:08:19 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qulacomm.com with ESMTP/TLS/AES256-SHA; 08 Jan 2021 07:08:17 -0800 X-QCInternal: smtphost Received: from nitirawa-linux.qualcomm.com ([10.206.25.176]) by ironmsg02-blr.qualcomm.com with ESMTP; 08 Jan 2021 20:37:56 +0530 Received: by nitirawa-linux.qualcomm.com (Postfix, from userid 2342877) id 20AE81A5C; Fri, 8 Jan 2021 20:37:56 +0530 (IST) From: Nitin Rawat To: 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, cang@codeaurora.org, stanley.chu@mediatek.com, beanhuo@micron.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Nitin Rawat Subject: [PATCH V1] scsi: ufs: Add UFS3.0 in ufs HCI version check Date: Fri, 8 Jan 2021 20:37:53 +0530 Message-Id: <1610118473-21021-1-git-send-email-nitirawa@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per JESD223D UFS HCI v3.0 specs, HCI version 3.0 is also supported. Hence Adding UFS3.0 in UFS HCI version check to avoid logging 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); /* Get Interrupt bit mask per version */ diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index 6795e1f..48f6c19 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -80,6 +80,7 @@ enum { UFSHCI_VERSION_11 = 0x00010100, /* 1.1 */ UFSHCI_VERSION_20 = 0x00000200, /* 2.0 */ UFSHCI_VERSION_21 = 0x00000210, /* 2.1 */ + UFSHCI_VERSION_30 = 0x00000300, /* 3.0 */ }; /* -- 2.7.4