Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2727894pxb; Tue, 19 Jan 2021 04:48:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4zdwHbe9PNBHQn8yuwZvhf1GwzN3YHIFIkJrGOdCVaZVXmXWtsiavNLMlZ9WTXlPmXJ24 X-Received: by 2002:a05:6402:4d2:: with SMTP id n18mr3254307edw.309.1611060501885; Tue, 19 Jan 2021 04:48:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611060501; cv=none; d=google.com; s=arc-20160816; b=GfygYkxOwwGvScrLBZYRNNek6ziFWakxEL8n2HLlt0woWEFUUN3JuJJE49s6oO6VxK 1EcrSmUlSI9TNNzlF3bDDfjxoLbBHKTuXlcwn4Etwo1aYAy/t8OpWr01nwQY7vLe+Cii 1lSb6bF6AmbBV4ddkPleIM6gl3AiNsyjSqRWURcI+yyXwqKTunXXo8r6nTru1BDqWqHQ fAjr94Q+voCDZ0eqrnIYONclK1gfAdFFugD3EqT69dph4dOlM+iMm5oXaBGy0ntXb2c0 oK3qehMlUBi/DoTfCcsg75eb6eCxi8PW3h2u/nIhQyW0ucD4Gl6jMHPjMcptQLXxiD5e sXCA== 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=iMs+WZ40fsHooQMaCoKx1JI66jjT19hekLDM57/xGS8=; b=TXV8tlnEWBseuLvGY1wgCE1J9sQPLqeOZ1GWe5YkwZG9uWe8IRQB8uiPxCbN/IUZ5f LageUst9c9ahbBmvp/d4FlmrYtAr26WwPTfWFes9VwtjMpR9pj1HRegcqC1HajNJ0Ull PnDW/o53AXLEsRn8u08hZbeEqMYLKo+rP/XnYHDoH1l5k4p3VCj3i4F3s/gpt3xyqdd1 qlLeEsWrFdJSEcn7IZ6kWIAm+lQBl8xwlzAPMhFtiVJfvRQGch+8p0Xw/17p9NUW8yHL iVDerYHnMAztevSN4mwMqm4VK9Fim8xNWErwl+kxTdrAw37Gzjmt6Ca8eWSCzOxVk4+6 1Hcg== 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 o60si9145392eda.61.2021.01.19.04.47.58; Tue, 19 Jan 2021 04:48:21 -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 S2392615AbhASMRb (ORCPT + 99 others); Tue, 19 Jan 2021 07:17:31 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:11508 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389319AbhASMIu (ORCPT ); Tue, 19 Jan 2021 07:08:50 -0500 Received: from ironmsg07-lv.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 19 Jan 2021 04:07:27 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qulacomm.com with ESMTP/TLS/AES256-SHA; 19 Jan 2021 04:07:25 -0800 X-QCInternal: smtphost Received: from maggarwa.ap.qualcomm.com (HELO nitirawa-linux.qualcomm.com) ([10.206.25.176]) by ironmsg02-blr.qualcomm.com with ESMTP; 19 Jan 2021 17:37:02 +0530 Received: by nitirawa-linux.qualcomm.com (Postfix, from userid 2342877) id C03482C52; Tue, 19 Jan 2021 17:37:02 +0530 (IST) From: Nitin Rawat To: 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 Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Nitin Rawat Subject: [PATCH V2] scsi: ufs: Add UFS3.0 in ufs HCI version check Date: Tue, 19 Jan 2021 17:37:01 +0530 Message-Id: <1611058021-18611-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 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); /* 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