Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3848239ybc; Mon, 25 Nov 2019 23:00:36 -0800 (PST) X-Google-Smtp-Source: APXvYqx8Updpj4hblrCPxCVZ2pS/v4eqBxz/jLgmSpTdWgvsgLxrLTevoDtfbe+l7RWXdQiRcbxt X-Received: by 2002:a17:907:2099:: with SMTP id pv25mr22116056ejb.144.1574751636503; Mon, 25 Nov 2019 23:00:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574751636; cv=none; d=google.com; s=arc-20160816; b=tq+p29/cUadfrAcg/UvWehprUyyZST1GqYqj8VFvKTGep7Qk+b2o2Eq77y5lUHAHWM z74+HWBzNO6axtqr34lloVXtjK+Bb4hRu2f05jB5kEQNL3/yrCz6wN4HiBXfcW3e74hL IYlgZdJ+q9cx/1zXODjfFWrYFdmhqONRDjAJ9DsJ5AWGBM04TdvgBhL47OADjdDRpJDs dHXrJXIpEiSjZu42Do2CLhIZ8MrTK4PIGUhemPVtXTogF3UE8NO3LWpq4ZOdMOLqqnDw gW6q0AJqtMkYJO8Q35V+mmPpMYNAtkGI8wzDj7ckUpBR3XR1gNKqWmU50VnscAN3kKnO J4pw== 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:message-id:date :subject:cc:to:from:dmarc-filter; bh=MDon++io8VrGHLVf5IXl+pUqw1NqBKSxlhQM/Faglx0=; b=CiGkEVr24oEARN/NN2DfTGwZ3Dz21o+gvgM2n5MDOMTQVmLwcC+sUa5nKBs9SLEkjY 4f1tX41wj3vmSaN42UoWazksyLxfVVksKRaRbB82ib80IhzMDy2p2HtjQJrcPY6yrS0K coDqfvXEpUd9L557BEsxiCDeYewzk8DCmghU+3lfRz2EjgIF5m8xYlVFmNj1Fu/rmh68 c0A0gPfK/psV7K6VxKg6hDDukPh7XSxjhNuo9vx1fIfpk+WclgzeKhMM7OYGAsFjbXIg 5wW8yJJjOYNI5DOPwSboIR9YBxJTINmNK/+SwGIQGbMhVeI/F3v53qwD/8/Gd/dOpGLm KIMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=qti.qualcomm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si6620268ejn.273.2019.11.25.23.00.11; Mon, 25 Nov 2019 23:00:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=qti.qualcomm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727250AbfKZGx7 (ORCPT + 99 others); Tue, 26 Nov 2019 01:53:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:43328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbfKZGx6 (ORCPT ); Tue, 26 Nov 2019 01:53:58 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C6662C447BD; Tue, 26 Nov 2019 06:53:57 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from pacamara-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6A8A3C447B8; Tue, 26 Nov 2019 06:53:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6A8A3C447B8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=pass (p=none dis=none) header.from=qti.qualcomm.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=pass smtp.mailfrom=cang@qti.qualcomm.com From: Can Guo To: asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, cang@codeaurora.org Cc: Alim Akhtar , Avri Altman , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Tomas Winkler , Stanley Chu , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 2/4] scsi: ufs: Update VCCQ2 and VCCQ min/max voltage hard codes Date: Mon, 25 Nov 2019 22:53:31 -0800 Message-Id: <1574751214-8321-3-git-send-email-cang@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1574751214-8321-1-git-send-email-cang@qti.qualcomm.com> References: <1574751214-8321-1-git-send-email-cang@qti.qualcomm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Can Guo Per UFS 3.0 JEDEC standard, the VCCQ2 min voltage is 1.7v and the VCCQ voltage range is 1.14v ~ 1.26v. Update their hard codes accordingly to make sure they work in a safe range compliant for ver 1.0/1.1/2.0/2.1/3.0 UFS devices. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 385bac8..0ded95e 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -500,9 +500,9 @@ struct ufs_query_res { #define UFS_VREG_VCC_MAX_UV 3600000 /* uV */ #define UFS_VREG_VCC_1P8_MIN_UV 1700000 /* uV */ #define UFS_VREG_VCC_1P8_MAX_UV 1950000 /* uV */ -#define UFS_VREG_VCCQ_MIN_UV 1100000 /* uV */ -#define UFS_VREG_VCCQ_MAX_UV 1300000 /* uV */ -#define UFS_VREG_VCCQ2_MIN_UV 1650000 /* uV */ +#define UFS_VREG_VCCQ_MIN_UV 1140000 /* uV */ +#define UFS_VREG_VCCQ_MAX_UV 1260000 /* uV */ +#define UFS_VREG_VCCQ2_MIN_UV 1700000 /* uV */ #define UFS_VREG_VCCQ2_MAX_UV 1950000 /* uV */ /* -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project