Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp634431ybz; Fri, 24 Apr 2020 06:47:14 -0700 (PDT) X-Google-Smtp-Source: APiQypJ6NO6wz9Z07t7w2Lod8LzYTjtTqf0DE5+i9fPJ3nEggOoHmdJUaB8C74bkUidIMdMx30jX X-Received: by 2002:a05:6402:4a:: with SMTP id f10mr7563198edu.274.1587736033848; Fri, 24 Apr 2020 06:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587736033; cv=none; d=google.com; s=arc-20160816; b=OvN1FUQH4JTaToB2JMP4w/0eeQVO61KQU+SQBf+Hr0qUE9aEopIeTe6qEwgSqzSsnl djlR9zLgqZ22BejyNNHIYsEGvr8aEKMVTOq8KbTTHotPecwSHFwxQgFHD095YQPlHkT1 Dk8O0sZLfv/l/FEdE/kFxHySkISypC7oOm7Q1qXauBBsvOZciDWUiUxuuqdGcbrjdLTs Fo/3+Bonn8gwuzW2cMVGlI2garnWS/vqAbNvfx78eU9RtEafIAFPa9WLHyNojSmavpDu 5tHdBIkcVcLqwWkQXYlSYvLWeJS2BEhVAfhGqreWAoeJgZ2hlFyyP9YRi+HzDdMS91Bb lQEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=gOcK5UU7zeksjfvjCI3UIk20IvOQDJJNddxIkJFSWag=; b=Q4tno0CnV7ZLE7oRTMExITSWbGrGOzGROW0/zhRdi68nhMhWNtpl+L7NZrO1cWWlPD XEHQAm0h28K6MppkYJLHaBpVkBQghyEL6DIcbxg9K8oB1slTLvm2DXVG7i28cvq6RYe0 Ql66KdbuAWmIhz+tLZY5Jm8F96NIfXx19jJnkZHXCYNWRR6nPh9AUXKrsH1WVBl5viIK igsVVZlddsK2AQtsAhZI9E/HYPOE648LMYsWfu6Uu/eYdf52dJl6lmxTDRyX10A+HB+u JjjXGyuNnnKVQuYTmmB9XpEsiucTAxCzmyMuuJFK9otXGfsBjkMbaTkm03zedLksAkHp hi3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=DtZIrkwL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si3178542edr.198.2020.04.24.06.46.50; Fri, 24 Apr 2020 06:47:13 -0700 (PDT) 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=@synopsys.com header.s=mail header.b=DtZIrkwL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727802AbgDXNpF (ORCPT + 99 others); Fri, 24 Apr 2020 09:45:05 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:45410 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgDXNpE (ORCPT ); Fri, 24 Apr 2020 09:45:04 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id DFC044049F; Fri, 24 Apr 2020 13:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1587735904; bh=SPjxNuDzWiud56RftbTam+lOBwj9rLiqknpfyq50zzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=DtZIrkwLnemlp38puCnXFuzpplsedzEhq1AFwnwSmjzFL3R8Eazwg2wuctQBzUGpr emtLbUqiUpV7xVkUc/NIZ8nqEaWq8xImzWUwpUf4vZHx4nssZTJwojEt6fgeCh+n96 04I4vFgA8ofGlUnC4eRF5FeoX4vAR4AzfyEfyBlklZtZBr13hP9mVYZbByDFbuDZy1 GNbM806znl5h2eTj3pF2idJLZawMt1x/9/dLLcoHIbJFmKcK40SovQiz0DPfIR9QWk WnZNDsSIjWO4Qog9eTdl7hYaTkN8RY/L7fTPtYHy6gVkV0JJ7vjc65SNbqDhUCG/Ef J2Dv7De53bw/Q== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id B167DA005C; Fri, 24 Apr 2020 13:45:02 +0000 (UTC) From: Jose Abreu To: linux-scsi@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Joao Lima , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] scsi: ufs: Allow UFS 3.0 as a valid version Date: Fri, 24 Apr 2020 15:44:45 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a define for UFS version 3.0 and do not print an error message upon probe when using this version. Reviewed-by: Alim Akhtar Signed-off-by: Joao Lima Signed-off-by: Jose Abreu --- Cc: Joao Lima Cc: Jose Abreu Cc: Alim Akhtar Cc: Avri Altman Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/scsi/ufs/ufshcd.c | 3 ++- drivers/scsi/ufs/ufshci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7d1fa1349d40..2e5c200e915b 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -8441,7 +8441,8 @@ 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)) + (hba->ufs_version != UFSHCI_VERSION_21) && + (hba->ufs_version != UFSHCI_VERSION_30)) dev_err(hba->dev, "invalid UFS version 0x%x\n", hba->ufs_version); diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index c2961d37cc1c..f2ee81669b00 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -104,6 +104,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