Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1185825rdb; Mon, 2 Oct 2023 01:32:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPkmeCzCP+REeKMQauYLNxlZRA6InmYexGiaU2u0oUX5YL+eCi1p64zXs3zBhln2zkfgxZ X-Received: by 2002:a17:90a:5ae5:b0:273:e689:8dfc with SMTP id n92-20020a17090a5ae500b00273e6898dfcmr9270292pji.32.1696235578539; Mon, 02 Oct 2023 01:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696235578; cv=none; d=google.com; s=arc-20160816; b=JOcpIKwtcvUEYxaexLupXEKPW25sfiJy8K06ZqRSne9wPG0uayFWCaamX21xf+//as m/orLO6FamAjpBdE0OItNYSDpmuMpOPRjxqecXf+sC3KXRAlprhfpWTTWAifA/O/QqNV T4ErlWoD6MfSZNGoK9TBVj8bYMo2+e2mTwYc2vJYXh+kaah/p+lDbVZ0/l2FU3pg3o3D sq5I4sDwF9yaY3u0juzoGRizwo09RbMFOmZ4dpTtIuS4ydCIR2RIT3kHwBUFRDkNtw6v JotxpP02eQHrHJV+KaR3/d4IsXLq+qIGrfj2RcVDRQa7ueyKVamvp8CJeLhbNH+eLMN1 raag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=PeSmx0D2O0/a7oNGI2vszLu5YKBAPoxdy4aY0mQYyUI=; fh=l2A/917EbxmquCfjRtJMhLKMrDc/q6frHyTCkC1BSq8=; b=Pz6ixfPoahpOFlzo2AzxF3KhYPiHQuG4cUnNubalsTEa9B1BplRrFTsg+rakETnM89 gEvqVLoxz7iadDWIqr5fEh+OWXA6nxFILibqCL27stKWfg7Ppv5SM3GSBBASMrslKklW Ga+oTzV8AE7iHXqFvnpqWd0ib+S10rXRrkLR4A29hR1OwHM0U7dx7/3cO9/h/5zQhM9c x7HspYtZSgm37n92//6Y4QWDOFzLVdzkTpBjiv9kksgwkY3pjxtI5RhVGNFIxGe9n9ZI 4wIVZJLPGmibtuq7kO56hG5lfZ/DnatT21tuEVkb8ZtMQW2LZ3PZi25/5C2aowNkI4hT y98Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="gBee/ib0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h24-20020a17090acf1800b0027782fd462esi6800007pju.5.2023.10.02.01.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 01:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="gBee/ib0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 925E080320ED; Mon, 2 Oct 2023 00:03:18 -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 S235601AbjJBHC5 (ORCPT + 99 others); Mon, 2 Oct 2023 03:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235680AbjJBHCr (ORCPT ); Mon, 2 Oct 2023 03:02:47 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05E811C for ; Mon, 2 Oct 2023 00:02:40 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9b29186e20aso1512735766b.2 for ; Mon, 02 Oct 2023 00:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1696230159; x=1696834959; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PeSmx0D2O0/a7oNGI2vszLu5YKBAPoxdy4aY0mQYyUI=; b=gBee/ib04lb8Su5dE1/csNqk7QhGlcoWLm257hjst94+6JplyfreEF1J7Pg0azyqtG semeU2l/YR+vdQg3JxOEAYI+fB9O4moXqGQBRChnyAvz2gFnI/J7mcLgB5O1PjWVyldf zJIzZ64zzvZCxAN8QY3USX5+Nm3FWWM15VaYzvniOuyrDQZA+EWUcoavvVOa/BR5W2lV D0OIVcLiXVAvbWxiYPOU5b8DDLSP4Iq3WG1jLzUtp9q0B0WB0cuQjoFm9qdmjfxg5jfG MAaE0o/lWmynDU4sCCkLl5yMG86qwApHeT1k84pHBYV+MiwcJIPUigXNIasznIYsTFHD 0rpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696230159; x=1696834959; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PeSmx0D2O0/a7oNGI2vszLu5YKBAPoxdy4aY0mQYyUI=; b=Gqanxvudi1E50Y0/LnbgM8WA5RIVzC7PxVQlb+mNm5YaOFmPznNxzIvAuHoyvxPWCY AJ+ehmk9zauzMJGVTaIyiCq6YUxOtm91hulLSsO9jy9wJgnBNp+L2amkneeyt+W63MOz WbGi2AM6gvsEBlR2j9iNLkZ7cFpj9BYjSlfy7o+R/1QV4F6vVQLzTuQTeiE1us4qslPS kHdSoHkdzQ83jlYHkrWhBmGnIWOBTmkWgUWqhz3T03K/ezYPT30pYYip+56nS09xsKGS vXnvGJVUqezpnOap3iL93kA2g46CInFXTOgpzLVmRozfRylu5tayUYWW8Y6cNkm6zbD0 7oew== X-Gm-Message-State: AOJu0YwT+OHH0raG56DmyS/HRxWEvy682x6DoI/JvfkJPStWMFxfK8GW 9j/sGKT0BmY8WQcYFK6rrNSBZA== X-Received: by 2002:a17:906:76d1:b0:9ae:729c:f651 with SMTP id q17-20020a17090676d100b009ae729cf651mr9070622ejn.17.1696230159028; Mon, 02 Oct 2023 00:02:39 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id t15-20020a170906608f00b009a9fbeb15f2sm16459798ejj.62.2023.10.02.00.02.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Oct 2023 00:02:38 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 02 Oct 2023 09:02:38 +0200 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , , Subject: Re: [PATCH] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable UFS From: "Luca Weiss" To: "Konrad Dybcio" , "Andy Gross" , "Bjorn Andersson" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Nitin Rawat" X-Mailer: aerc 0.15.2 References: <20230929-fp5-ufs-v1-1-122941e28b06@fairphone.com> In-Reply-To: X-Spam-Status: No, score=-0.8 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]); Mon, 02 Oct 2023 00:03:18 -0700 (PDT) On Fri Sep 29, 2023 at 3:12 PM CEST, Konrad Dybcio wrote: > 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. > >=20 > > 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. > >=20 > > See also the following link for more information about the VCCQ/VCCQ2: > > https://gerrit-public.fairphone.software/plugins/gitiles/kernel/msm-ext= ra/devicetree/+/1590a3739e7dc29d2597307881553236d492f188/fp5/yupik-idp-pm72= 50b.dtsi#207 > >=20 > > 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. Behavio= r > > wise I don't see a difference between ~2.5V and ~2.9V. > >=20 > > Should I just constrain the regulator here to min=3Dmax=3D2.952V? Or ju= st > > say it's okay as-is? > >=20 > > 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_a= ctive && on) > min_uV =3D vreg->max_uV; > #endif > > so, when the ufs is in use, it's pinned to vmax Hi Konrad, Are you implying I *should* or *should not* pin the voltage range to 2.952V-2.952V for mainline? Regards Luca > > Konrad