Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3888889pxb; Mon, 8 Feb 2021 02:43:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUtfqjM6r+Ckjc6JWkIKjE4CqpqwVLXcYg+BQBETcYzqbZyPI3RG7mN8UO9djvuz6GXe2Y X-Received: by 2002:a05:6402:1151:: with SMTP id g17mr16303644edw.48.1612780985720; Mon, 08 Feb 2021 02:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612780985; cv=none; d=google.com; s=arc-20160816; b=ZW1ccUATh6VMTDMdl0P5pqnhM75pBtq53BnuatiM2Uy7Xv7RK+21vw4alZHqc8Amo2 5WqWCt/d6HkoraUggyDUzEBugneipnrbvcX5y/4b/Xn8u4cqAW2ZBpEwxcTWEoenRDti Crh9lRwOqmL6fHGrE7/mnV/WrXE3mc+f8/nyG92uDXdJ7JrTwhZC1N+e10Zhz2UkQ1kj 8A6XCMDuNuwB2nqthwRpHxbV2E9J/ImQm2FJ+GDlBnkiCmGutCJcco3lHykekcTUhhDh U/i5ZjxRmgpIMCWhok0x/LArilFN+mVF9EC+JNFkBWLJDv4fMP0M2BjS/fHe784bepfh 70ow== 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=/UDWVXp1aV6QxsVm4lZslyXiXsVQduZouKiblUKIWPs=; b=poJmmtKowovdwOKyRsYG+JKZ9zbeQdJIRr6QjYldcYbZrM8puNB3rZufWCKO19PHn6 LkqJ4gVrJ8XnB2rc8immsUossrQXR3yC6mSEfUcTArykyGELXKzfpPf6iR1jFd9acte6 d0fGmgxawJotiHbUfcm6rsU9dFuh0NN7go6u6RfyGihIb0bB9xf50xTWSh18PMKj/dLo LIRb+Heyjjnn+sM8l/DdCdZIjft6Bmw461YkXx9ZheZ4aQ0zS2vLw0g94bff7uSMOCLM rlv+Jx30S//W141JhBHpttsZZzr9PY2/XIKkkL8bQ4Fhqzp3CKWRQk3xRQ4fS3Cgsg9Z o9gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=PpdFgely; 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 ce20si12152998edb.138.2021.02.08.02.42.41; Mon, 08 Feb 2021 02:43:05 -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=PpdFgely; 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 S232382AbhBHKla (ORCPT + 99 others); Mon, 8 Feb 2021 05:41:30 -0500 Received: from so15.mailgun.net ([198.61.254.15]:48283 "EHLO so15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbhBHKbt (ORCPT ); Mon, 8 Feb 2021 05:31:49 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612780288; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=/UDWVXp1aV6QxsVm4lZslyXiXsVQduZouKiblUKIWPs=; b=PpdFgelyczujR6hK8OgveEiNgPL7RpeDtHNbWByzSY65/Ym7MjTNnlEDZgpk6e+dnNPIS37T 4G//VvrV50+vxE1oQQfYvqwdPkRJkb5lKqofr++isRY2VjkLxyToCMmrdlWU11AE++pot3fu Ga82d5IhJblpddF+tMgD8AuGHhc= X-Mailgun-Sending-Ip: 198.61.254.15 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-n03.prod.us-west-2.postgun.com with SMTP id 602112d9f112b7872c21e70c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 08 Feb 2021 10:30:49 GMT Sender: nitirawa=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0B202C433C6; Mon, 8 Feb 2021 10:30:48 +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 1428AC433CA; Mon, 8 Feb 2021 10:30:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 08 Feb 2021 16:00:47 +0530 From: nitirawa@codeaurora.org To: Avri Altman Cc: asutoshd@codeaurora.org, cang@codeaurora.org, stummala@codeaurora.org, vbadigan@codeaurora.org, alim.akhtar@samsung.com, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V1 0/3] scsi: ufs: Add a vops to configure VCC voltage level In-Reply-To: <48fbd86b319697fced61317bd15c4779@codeaurora.org> References: <1611852899-2171-1-git-send-email-nitirawa@codeaurora.org> <48fbd86b319697fced61317bd15c4779@codeaurora.org> Message-ID: <2fb825d458fb87a522b4a64370ee83b1@codeaurora.org> 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-02-01 14:01, nitirawa@codeaurora.org wrote: > On 2021-01-31 19:32, Avri Altman wrote: >>> >>> UFS specification allows different VCC configurations for UFS >>> devices, >>> for example, >>> (1)2.70V - 3.60V (For UFS 2.x devices) >>> (2)2.40V - 2.70V (For UFS 3.x devices) >>> For platforms supporting both ufs 2.x (2.7v-3.6v) and >>> ufs 3.x (2.4v-2.7v), the voltage requirements (VCC) is 2.4v-3.6v. >>> So to support this, we need to start the ufs device initialization >>> with >>> the common VCC voltage(2.7v) and after reading the device descriptor >>> we >>> need to switch to the correct range(vcc min and vcc max) of VCC >>> voltage >>> as per UFS device type since 2.7v is the marginal voltage as per >>> specs >>> for both type of devices. >>> >>> Once VCC regulator supply has been intialised to 2.7v and UFS device >>> type is read from device descriptor, we follows below steps to >>> change the VCC voltage values. >>> >>> 1. Set the device to SLEEP state. >>> 2. Disable the Vcc Regulator. >>> 3. Set the vcc voltage according to the device type and reenable >>> the regulator. >>> 4. Set the device mode back to ACTIVE. >>> >>> The above changes are done in vendor specific file by >>> adding a vops which will be needed for platform >>> supporting both ufs 2.x and ufs 3.x devices. >> The flow should be generic - isn't it? >> Why do you need the entire flow to be vendor-specific? >> Why not just the parameters vendor-specific? >> >> Thanks, >> Avri > > Hi Avri, > This vops change was done as per the below mail thread > discussion where it was decided to go with vops and > let vendors handle it, until specs provides more clarity. > > https://www.spinics.net/lists/kernel/msg3754995.html > > Regards, > Nitin Hi Avri, Please let me know if you have any further comments on this. Regards, Nitin