Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp681964rwe; Fri, 26 Aug 2022 12:13:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7aDquzBOJZ1BeT4zFFww3FO9v44yNqlvspR2VzzP0wMi16gHFdzRG74OQY+RiPVavyYVC2 X-Received: by 2002:a05:6402:3694:b0:446:93e0:eed3 with SMTP id ej20-20020a056402369400b0044693e0eed3mr7788935edb.323.1661541195634; Fri, 26 Aug 2022 12:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661541195; cv=none; d=google.com; s=arc-20160816; b=IAhf/9SVnmgthP0OJVSpni2WLCJEOdP6bCaNn6eIhgYvvyYdeCy8R+ILQjd7VNf+Y0 E+6icddqlX4f/G/jEgJArIifawgwdV6zlJ7cle1rzwQadmMbB4h45puDkUnC2JXojpOG iGIQncui2PgnekumqMIUUTWTi+li9166qxFMbfN8ODWuXE1KZsv/A1Cz6e+tLuIFBNnM wJdIKW6FYFxX7x9G1TiCLMt7akjdY8vR183J0gUSVi44vSCgOYxzDqG7/G1DJQPRKS1D E/z3YJ5qMiMzQHCAg3mFgFHzttmzGC+Yo9TPeOdswm2eDWwntJgFwvffPJIk6TFmbfpR H0Tg== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=rIJiXmcLVnDE/1E2GNISIHjZ45atOKdsFhUkGUvxkY0=; b=rMG25mwKpAe+T1OJr/GeatsIhTxaCfmflP5mIazMZEsR5dbNOE/7PzGeXnkdQHV9cM no3DUYVQgp/93ddBkSdoZL7S+/M+I+aRs/ts6G0nFKCzRHXamjXY3POBX9NwWYQSD14f 8PPwEmvRa/4KryNttD9KLTn9rQmLGCLaGFB2f4gZ8YIyM60a66hUJH0A3RFhERQ3WobG SoGP/T6W7rAmiVHEzcwbR1tjOXHBbLFF74kM6m7JDuvB2/oWrPZLx/jkvKFMZ49BFali esWht87xs+hwN51bQR4Xm0cy5OgzBHXcmI4wc57bRWV3Olhxk/eSzpuVf+qx4zP7qpsE f8HA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn11-20020a17090794cb00b0073d888f8c4fsi555202ejc.236.2022.08.26.12.12.49; Fri, 26 Aug 2022 12:13:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242293AbiHZSpx (ORCPT + 99 others); Fri, 26 Aug 2022 14:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345155AbiHZSol (ORCPT ); Fri, 26 Aug 2022 14:44:41 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [IPv6:2001:4b7a:2000:18::168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBBCEE69B for ; Fri, 26 Aug 2022 11:41:27 -0700 (PDT) Received: from [192.168.1.101] (afbd60.neoplus.adsl.tpnet.pl [95.49.29.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 0FEAA3F75F; Fri, 26 Aug 2022 20:41:13 +0200 (CEST) Message-ID: <21280b41-ae51-a7f1-1b9e-b0028fec3b75@somainline.org> Date: Fri, 26 Aug 2022 20:41:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 6/7] arm64: dts: qcom: sm8250-xperia-edo: Specify which LDO modes are allowed Content-Language: en-US To: Douglas Anderson , Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220825164205.4060647-1-dianders@chromium.org> <20220825094155.6.Ie446d5183d8b1e9ec4e32228ca300e604e3315eb@changeid> From: Konrad Dybcio In-Reply-To: <20220825094155.6.Ie446d5183d8b1e9ec4e32228ca300e604e3315eb@changeid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,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 25.08.2022 18:42, 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: Konrad Dybcio Konrad > > 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 {