Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3998333rdh; Fri, 29 Sep 2023 08:20:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8ILCWPzu/2csvyxvJIIQLtXlOO+sQwfjIqAoetAlRi480c6GK6gkQ6CnCGbDrKC7J4ivy X-Received: by 2002:a17:902:db08:b0:1c3:76c4:7242 with SMTP id m8-20020a170902db0800b001c376c47242mr7644985plx.22.1696000814611; Fri, 29 Sep 2023 08:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696000814; cv=none; d=google.com; s=arc-20160816; b=kBl1qxPzMLc1JVWFr37mu94CHejArpooPlmdUf7C7WCqIktti49xFjweG+n2+NEcY7 YwnpILCrFx2U0kvOEU1NzO7qfUFpewmZ1tdVtwsECcIqixZJmFKaZTd2fZBtA2agwemo aPoKpejx0uUjgGkVqNEmUOcv7H1LeHV7hUQgg4o5fDjGPFp80NIdQmzkYDhIxlQH7cR7 +EEGyPvMp/Wx91JgXznQpot8LAtG/nbDRq93rkyTi8f7Sx+PiuSzNiVzOR0HPdD+rpHz 5ESQgEP50E2forpgKBMgw3pUIfy58qP3Gakr32uf7X3gwykb+rPrtrT9kq9hsGf0RmTT ARug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=W+V6aJ381tI2A5gtE2dQcrFHINgoS2cHdZ6PB5Ir1HE=; fh=9gJ1IjOnsmDzkkUbps8ER5SB0LjwXIsy8qyrU5g1QtA=; b=Y8FA0+alkwjXXZDeSoD5E49RjKdKaDtIa/SiJTXm6pIiUXSxYn3N0JpV5L9PHzstta x1ZhoAlDsYK18zq/T0TYN6shbjQh1Y4PDoen9wnS6gOcxF/foYl8HayszSGz7qtPbCEO eR7DGx/zTd9Xq0qKiejk3CMXtsmxxnj0Cq4BV/9SNef1S1TLtpVoiP47hYLWNj+YfTBC 0yz1yE0ik0pfHycfATahYsa6X+o3nolSoCrW6/bY70hQpiWVmkgyFDPdUwuBwP1AwwyF 46mWpXSeRDypeRt/Z3aRIN+LWRhAX4ExweyJsm142+IhwkiD5ctX1q7WKYBOagm7P/d1 1Nvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hfBS3KD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j6-20020a170902da8600b001c727b3640bsi7936274plx.235.2023.09.29.08.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hfBS3KD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0084A8026D9D; Fri, 29 Sep 2023 06:12:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbjI2NMs (ORCPT + 99 others); Fri, 29 Sep 2023 09:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233248AbjI2NMq (ORCPT ); Fri, 29 Sep 2023 09:12:46 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7705C1AE for ; Fri, 29 Sep 2023 06:12:43 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9ad810be221so1912161166b.2 for ; Fri, 29 Sep 2023 06:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695993162; x=1696597962; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=W+V6aJ381tI2A5gtE2dQcrFHINgoS2cHdZ6PB5Ir1HE=; b=hfBS3KD9GSiK9c4ULe9G3pmoF8MBkXPdWndTICFI2xP+4I4UGdLTTLxFXPylahVkyU pmpJImbF/lAmWZvLOkHcNFbfEJZeihslZPMgDru4QmG3B3Q0kwI2bYIG09zQwNWA5NtU FM8oUs7f1pQ/gvPfkdFg5Omion+W/JNI2YwtJfWJH+g73OcBZCWP0mANbAYE7Z019Srf pReI7yjKZyI1CZ9XW95EfqGOPwys1J0sxEFFHGsWEl2PoqKokyZajmCfgLmQK5X2GJud QgcZcC4E82/ogvxhhM7Pwn/s8pz/4GZn2ziB1fVw4kWHNGH54XP59mNmTaMgvAr3DlMN iG4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695993162; x=1696597962; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W+V6aJ381tI2A5gtE2dQcrFHINgoS2cHdZ6PB5Ir1HE=; b=w3PDpUuEh15VTt1nR3avkPsblG2qOV4RkucoGrPZ4UkB20ybVQiUiOaMDJgqpABgHL ZZ5XZ176HaVF0c5U3k1s07F8XRAcgjZeyho7eDrh1hxV0jQBzCYmHFiUbbgogoo/HBr7 XsstJAFhgBGAOpIhA4TiD9Vp8v0KfzSGUZ5BtzkkvFGblINttp41c92J7/XOAqReSC4o xQeYXobINlRAqIQ03st9MOxysCa8Ic4DLudPMSe205ZjC4R4V+itIfkzCaw6W0iTWF55 WyvsrAvdKY1bZCqn/dSNO9CpBBVrtv/1Xw5VmDWL/u5x51bqQd67jHywEJUrh9fr2Tbx I56Q== X-Gm-Message-State: AOJu0YzrolGj8PCHyDnvPS9/9VQwQFKmVoHl3PZw7NU8sBim47S9Nye1 9qJzNlKXIA6TUIykvtPBSGHvQw== X-Received: by 2002:a17:906:2216:b0:9ad:ef31:6efc with SMTP id s22-20020a170906221600b009adef316efcmr4144816ejs.21.1695993161872; Fri, 29 Sep 2023 06:12:41 -0700 (PDT) Received: from [192.168.33.189] (178235177217.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.217]) by smtp.gmail.com with ESMTPSA id rh27-20020a17090720fb00b009930c80b87csm12606288ejb.142.2023.09.29.06.12.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 06:12:41 -0700 (PDT) Message-ID: Date: Fri, 29 Sep 2023 15:12:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable UFS Content-Language: en-US To: Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nitin Rawat Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230929-fp5-ufs-v1-1-122941e28b06@fairphone.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xs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x YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230929-fp5-ufs-v1-1-122941e28b06@fairphone.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 29 Sep 2023 06:12:58 -0700 (PDT) On 29.09.2023 11:52, Luca Weiss wrote: > Enable the UFS phy and controller so that we can access the internal > storage of the phone. > > At the same time we need to bump the minimum voltage used for UFS VCC, > otherwise it doesn't initialize properly. The new range is taken from > the vcc-voltage-level property downstream. > > See also the following link for more information about the VCCQ/VCCQ2: > https://gerrit-public.fairphone.software/plugins/gitiles/kernel/msm-extra/devicetree/+/1590a3739e7dc29d2597307881553236d492f188/fp5/yupik-idp-pm7250b.dtsi#207 > > Signed-off-by: Luca Weiss > --- > I'm not 100% convinced about the regulator range change. For sure with > the original voltage range the UFS fails to initialize, but looking at > downstream kernel during runtime (debugfs) we see the VCC voltage > switches between 2.4V (idle?) and 2.952V (active?). But even with this > change in mainline the regulator would always stay at 2.504V which is > for sure lower than the downstream operating voltage of 2.952V. Behavior > wise I don't see a difference between ~2.5V and ~2.9V. > > Should I just constrain the regulator here to min=max=2.952V? Or just > say it's okay as-is? > > Depends on: https://lore.kernel.org/linux-arm-msm/20230927081858.15961-1-quic_nitirawa@quicinc.com/ > --- There's a little funny hack inside the driver #if defined(CONFIG_SCSI_UFSHCD_QTI) if (vreg->low_voltage_sup && !vreg->low_voltage_active && on) min_uV = vreg->max_uV; #endif so, when the ufs is in use, it's pinned to vmax Konrad