Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1080780rwe; Thu, 25 Aug 2022 15:12:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7mHLDiEkbzVKGz4UydlHp44fhX95w1Z1S7pSIB+METiE5FaVTMBQ8PFJhLZ68axsQM70wL X-Received: by 2002:a63:87c2:0:b0:42b:74d2:e12c with SMTP id i185-20020a6387c2000000b0042b74d2e12cmr88737pge.25.1661465557044; Thu, 25 Aug 2022 15:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661465557; cv=none; d=google.com; s=arc-20160816; b=VBXoQAkLUHRGPqdXx/GL236mo6x/NAQ4Mt8l8grEgVLm/2tJyEM23Vq/tmMuiTfA4q rOQSp8MtNgvUvAFRIyt7V615AfUFFNF0yZwxE7I63P9lVPhp38ehjiD1j8YvNlp4tRel Hko/uXWj4SSsspteHHDneBPRSTYWRaqoVPKg8b3G6qdUE0jLnZfQRsqwLqO1xI01o5t4 9BhqCNDGuc75pFGCEXXw7s7k1UFz5XEOC6Y6DWmtMXz/cbCvHTGPmm19VUCziYHlRjbz NODWti0W8GXHbAh21xR8IVvEWjtKbfxzRX79CvvlJb5geXzu4jyAmCOrAq1Dj7CQbuEN qSaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TpiWfUhlZ2jUxhN+MMbGvXsRCYfyKWQ6ow6O6tQAlI0=; b=VJMLUnfjCn4LCzW2co3wxDtxHHPhNRv30pHAC1nbJojzZYupRMr2H3X+7HevK2VQEi CuatHutWhQyWdkMYZ3Elzr74xD9m9+pxCHzXnwcVQWsYyg3fPzImwlW8TuPigCDf14r3 /CXbk4kOi+4ejCaxNBnUyuBPP8Nz89kniAUI6yII/d4h8j3/bsVqS1V+5Cezj4LCODZX 9m/r0eHe3dtfwb6xyzcYTeFUIlOG+6GzLTmfWV0wz4TUYnnPRZ2ShCnZSk+i6XZJzRo+ yQr1Qi1echhvihysqTng4pH0Xu7BD6oF1jTpYnlinKwganm5c+lpEqfAm9cl83uAIMox lGKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BchyBMlf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a63f356000000b0041603073c17si228559pgj.394.2022.08.25.15.12.25; Thu, 25 Aug 2022 15:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BchyBMlf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243924AbiHYVkk (ORCPT + 99 others); Thu, 25 Aug 2022 17:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243952AbiHYVkL (ORCPT ); Thu, 25 Aug 2022 17:40:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F62D647CF for ; Thu, 25 Aug 2022 14:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661463603; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TpiWfUhlZ2jUxhN+MMbGvXsRCYfyKWQ6ow6O6tQAlI0=; b=BchyBMlfTbIVXEycgV1pbb9zi1OKu9Dj6gKQRbRXpapj3yLJ56mCrRdTiO2eCjpbOung29 4OiiQcvj4g66zbofmjhAVfmB2FOjp+XAR3o2a/60cI6WCyNbzTLB06w40sBPo6gubAFZ9Z v5ggg8NSkMCUS0Z+gUo6M5oWEqGdLU0= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-557-oAErQs3FNimrsOmCBtBPDg-1; Thu, 25 Aug 2022 17:40:02 -0400 X-MC-Unique: oAErQs3FNimrsOmCBtBPDg-1 Received: by mail-qt1-f199.google.com with SMTP id y12-20020ac8708c000000b00342f1bb8428so16018417qto.5 for ; Thu, 25 Aug 2022 14:40:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=TpiWfUhlZ2jUxhN+MMbGvXsRCYfyKWQ6ow6O6tQAlI0=; b=wwBeQYubZ3aCALwhNb0jVYEaS6+syBgS0NIwe9KVFrOMnJ9SdypBhrgiOjo85pTd3/ Dit2+UZ001LwquCfbI7QFe5pe88CPIYot1BVV3+sgr2NOH8Qh6pw4DzJ7Z28lvi4d+jW D3MX17ySl1OeaLADQRL7PjDTMU/4km80jl9npLDHRiNs6B/ziqgejKHzvoYZhYOhOgfM fjbY5Ae6CbiDVKwy9oSucDnjGCBFroM5DaiYDR2nZsTK/peOGpW4l1OVrgp09ecLPsmE mOJ0wWIAionG/SKydI5te+TKPhXOpi8/0JDDcChf39WjUGuOGF2AOEWAEyFY0tTQB3Az qkbw== X-Gm-Message-State: ACgBeo3AX48UEqvsCX3g+UacX7Y0wszKw5COIyiPETjorq4K1OQFDybH cLIJJZFs4R/DoLolsGbGCuQfWq0CpG2UEyh2iJgdkHs21Np6crCRWFU15RVYPuHXvPFib0lw7TG 7dSvUwITbMDQcdNxoz45bnDxa X-Received: by 2002:ae9:ed81:0:b0:6bb:7a53:fbb with SMTP id c123-20020ae9ed81000000b006bb7a530fbbmr4588058qkg.495.1661463601766; Thu, 25 Aug 2022 14:40:01 -0700 (PDT) X-Received: by 2002:ae9:ed81:0:b0:6bb:7a53:fbb with SMTP id c123-20020ae9ed81000000b006bb7a530fbbmr4588044qkg.495.1661463601540; Thu, 25 Aug 2022 14:40:01 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id r21-20020ac867d5000000b0034300e35487sm40110qtp.54.2022.08.25.14.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 14:40:01 -0700 (PDT) Date: Thu, 25 Aug 2022 16:39:59 -0500 From: Andrew Halaney To: Douglas Anderson Cc: Bjorn Andersson , Mark Brown , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/7] arm64: dts: qcom: sm8250-xperia-edo: Specify which LDO modes are allowed Message-ID: <20220825213959.pdiwfa7qxq37tjdz@halaneylaptop> References: <20220825164205.4060647-1-dianders@chromium.org> <20220825094155.6.Ie446d5183d8b1e9ec4e32228ca300e604e3315eb@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825094155.6.Ie446d5183d8b1e9ec4e32228ca300e604e3315eb@changeid> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 09:42:04AM -0700, Douglas Anderson wrote: > This board uses RPMH, specifies "regulator-allow-set-load" for LDOs, > but doesn't specify any modes with "regulator-allowed-modes". > > Prior to commit efb0cb50c427 ("regulator: qcom-rpmh: Implement > get_optimum_mode(), not set_load()") the above meant that we were able > to set either LPM or HPM mode. After that commit (and fixes [1]) we'll > be stuck at the initial mode. Discussion of this has resulted in the > decision that the old dts files were wrong and should be fixed to > fully restore old functionality. > > Let's re-enable the old functionality by fixing the dts. > > [1] https://lore.kernel.org/r/20220824142229.RFT.v2.2.I6f77860e5cd98bf5c67208fa9edda4a08847c304@changeid > > Fixes: 69cdb97ef652 ("arm64: dts: qcom: sm8250: Add support for SONY Xperia 1 II / 5 II (Edo platform)") > Signed-off-by: Douglas Anderson Reviewed-by: Andrew Halaney > --- > > arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi > index 549e0a2aa9fe..5428aab3058d 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi > @@ -317,6 +317,9 @@ vreg_l6c_2p9: ldo6 { > regulator-max-microvolt = <2960000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7c_2p85: ldo7 { > @@ -339,6 +342,9 @@ vreg_l9c_2p9: ldo9 { > regulator-max-microvolt = <2960000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l10c_3p3: ldo10 { > -- > 2.37.2.672.g94769d06f0-goog >