Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp664060rwe; Fri, 26 Aug 2022 11:52:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4o7AI8D4llIbbC6Elkt6gG12eDPMCXZruSGoNIl+8kvql6s07z8BLJUu829VZWyW1/ZDMm X-Received: by 2002:a17:906:5a5f:b0:73d:6061:5696 with SMTP id my31-20020a1709065a5f00b0073d60615696mr6120738ejc.595.1661539935754; Fri, 26 Aug 2022 11:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661539935; cv=none; d=google.com; s=arc-20160816; b=xOH+WBRg3GYl676c3YR/vdIQp95YijsuLFVLRCt2/ofVU3bIX2Avaes98B+vnzJvD7 ionSWxpREVKOP/P0W16rKsAqk4vFqAMFVyEkvdfcV/DdAeQTEDNGLwrr03H1MvpAHZL6 XrBAcfUdGJpCINmKYDDo0iUZh9fEG0pKfCbEO3i++zK5sOiUQSW/YhYSj6hquKqn90ok iNOZlKZlnUuI4O6LXhqvWZYdxPoipJdT5txsXKLzu0ehaqxwmI1XnoP7PLdJDMzDL9wH dwdkN9kiqY29C+EhmXjuBQRuwhd91ejZosaQeo640xQsBvlsOIgTh9z49SDPwJlWeoxI 8P+Q== 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=fQRSc7Ajs4NQw5cBiwy8PpX62Pg9HDorSkD/R5gr61g=; b=Gc20aOcRAXCpZetkkYM3j1FCjd93nf2kzOFJW77FXgUqkps4kBXHlcxyXl1Gsy9afR 3hWGQ9AjnceRLshmf/lA4ZF7RrOUkTUgUu9cji0cJ1+U3QVCBHXZMYbJ29Hf7+AC6ey0 6b/iOC5f8njnrC6jsypmAC//Qb2LLTi9vowSGjiAB2W7HJLq8+h+5hwCue2sRQKKSvTK J12wXipvGOBLwCFW4u7J7Tt++Bu7iP/zL57fvI8x2WYQXm+wXZ/pFnTk69Xu1thVCoo3 9sYfL5bWORAuIgtwHhhoXj+EII4CYe/KXT9iKhzO7YYpQeUkqqlBEbsLARiL76XH2SZG 301g== 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 s7-20020a1709060c0700b0072f1c8d0e62si1672219ejf.95.2022.08.26.11.51.45; Fri, 26 Aug 2022 11:52: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 S1345003AbiHZSsc (ORCPT + 99 others); Fri, 26 Aug 2022 14:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345100AbiHZSsF (ORCPT ); Fri, 26 Aug 2022 14:48:05 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E93FFC0B5E; Fri, 26 Aug 2022 11:45:06 -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) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 834263F6BE; Fri, 26 Aug 2022 20:40:02 +0200 (CEST) Message-ID: <7d73722f-8a9a-f9a6-a203-f2bb8853f238@somainline.org> Date: Fri, 26 Aug 2022 20:40:01 +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 1/7] arm64: dts: qcom: sa8155p-adp: Specify which LDO modes are allowed Content-Language: en-US To: Douglas Anderson , Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Andy Gross , Bhupesh Sharma , 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.1.Id59c32b560c4662d8b3697de2bd494d08d654806@changeid> From: Konrad Dybcio In-Reply-To: <20220825094155.1.Id59c32b560c4662d8b3697de2bd494d08d654806@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:41, 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: 5b85e8f2225c ("arm64: dts: qcom: sa8155p-adp: Add base dts file") > Signed-off-by: Douglas Anderson > --- Reviewed-by: Konrad Dybcio Konrad > > arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts > index ba547ca9fc6b..ddb9cb182152 100644 > --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts > +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts > @@ -43,7 +43,6 @@ vreg_s4a_1p8: smps4 { > > regulator-always-on; > regulator-boot-on; > - regulator-allow-set-load; > > vin-supply = <&vreg_3p3>; > }; > @@ -137,6 +136,9 @@ vreg_l5a_0p88: ldo5 { > regulator-max-microvolt = <880000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7a_1p8: ldo7 { > @@ -152,6 +154,9 @@ vreg_l10a_2p96: ldo10 { > regulator-max-microvolt = <2960000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l11a_0p8: ldo11 { > @@ -258,6 +263,9 @@ vreg_l5c_1p2: ldo5 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7c_1p8: ldo7 { > @@ -273,6 +281,9 @@ vreg_l8c_1p2: ldo8 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l10c_3p3: ldo10 {