Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1094186rwe; Thu, 25 Aug 2022 15:32:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4YDGG6UkRANC3yM7JyqhDtUQ5fy5uwdD1Yvl+QVBZBDv5eEfPY0RzMrYQaN21xWQM5k5Rn X-Received: by 2002:a17:907:8a09:b0:731:610:ff8d with SMTP id sc9-20020a1709078a0900b007310610ff8dmr3657593ejc.399.1661466772290; Thu, 25 Aug 2022 15:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661466772; cv=none; d=google.com; s=arc-20160816; b=ynsLqgV6TU+BAs5aydBt+0uybSX8PGGai/zoa4Voy3ZH4UJ7ZFDTLN4DrELY7LY43J 5ESDDr+IZGO9ib0nCUAEwjREiDacSkacMzvBNJgfLKReLnC32yxY+94i4dlcKOVME92z TbZWGVGsTaLp71ceCSZQ1xIuCCetn36VeIl+S4e83jEIae6d3MjwXXCNZpxESJsxfiHz TBBsP3szBdjygxU+7WSvwi8KFTOt6DA8k7YR77KrAyBrqwzJBg8peoT+atK+QJ9li6S2 j8I1pRoqlYkrCsZXWcsSxtCr8RWtwGu5k6XZ4P8Ct+D059Ew6lYlx0tzY/iphive2emB LHig== 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=KNs/b3nl3FKvMjHZZMNTWfTvykJjWYkvtDKyXB8RuwY=; b=H5TQyvp9fDV3GL9E8QrFQrQAYvKedWouLeeEyigfQA3sXcPY6iq3F/E57pkaiO8XHv UAYyZ9QQ/R0ioS5J0mD0TIGXJ+zAt1Wzv/RQsb4I9Y5bJPiZyzYRI0SmHqvcbVD/yhq+ etm4KhuPiWH+wSZfX6eFqbFkVYr76C7+ryfuVkkwY3pHxooKToYTMXSvZ6wZw24vmvCK KdBYFhucRo/cO4uAEBDQRR5mQ+kxmKVtsXZufhDzfRZnffgHsjv4e4dpua9xA46NCz41 x3xDAlC9kdg9zea6hhIm3L2J/YUeB2zT2XnmOUUgcbKoWEAyxYW5NxO3JKcjanlS7I5i +5Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LiBltKoW; 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 di21-20020a170906731500b0073d7884a3c8si270660ejc.594.2022.08.25.15.32.26; Thu, 25 Aug 2022 15:32:52 -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=LiBltKoW; 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 S243827AbiHYVlP (ORCPT + 99 others); Thu, 25 Aug 2022 17:41:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243907AbiHYVlN (ORCPT ); Thu, 25 Aug 2022 17:41:13 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45013D5A9 for ; Thu, 25 Aug 2022 14:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661463670; 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=KNs/b3nl3FKvMjHZZMNTWfTvykJjWYkvtDKyXB8RuwY=; b=LiBltKoWD2lnmX07v/nasssSaR3xsXPjSHk4wIYkf7bffp2++ABNGXD/gOhNrWCU5MzPLu YnaZQI3hvud9sAx2xTdzfwxi0C3kId5kMzUQAWHlKm8iFpVaWYnK1IcsfPXLWlM3Dz01zz 1xnp6/iKC7Ni1WWhXY9kU/YyaA/Tvv0= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-94-jatpWHPGMZeVs_UX7D8sSw-1; Thu, 25 Aug 2022 17:41:09 -0400 X-MC-Unique: jatpWHPGMZeVs_UX7D8sSw-1 Received: by mail-qv1-f71.google.com with SMTP id c1-20020a0cfb01000000b00495ad218c74so12738776qvp.20 for ; Thu, 25 Aug 2022 14:41:09 -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=KNs/b3nl3FKvMjHZZMNTWfTvykJjWYkvtDKyXB8RuwY=; b=eGeQ83HzbaEQeJdOH+Qls0KM8c2rlwHypnrmUMqfGQ5xb6xRDU62rUPiLODPTUjigB cfUsYIVdagb4Ph87EUQ8NlwKaLVKxA//hHh+/q98Up9zUwVb5cb0Zd48gwO2Qi/t/9SI +5TFMC1gqT6sdzhs7J0727l3NUKHJl23tgdcrmQo/57i792gHSFJ09uzSCvmNyMLiGs7 amtVvfQK7nD3EN//Kw0DSf36xtARfuJaTBrmFhJbxkZNM/2blDf5m0BTv9Mrc5GicWG0 23uDt3HFoUyboxAQO07Y0ZFfN4lCdSASXm0oLz268rNDoaCZ1IFs1OYjBhfWxn/PKZpV QaUQ== X-Gm-Message-State: ACgBeo00pR+EX7u69qTKzKUa3KxowVG/Daapw7tQCcl4Oy3q0dN+iHh+ IBe5ZqZQN3g0+BvPVeYcPFq9fe7uKYRfupjH2weoEv4KKJaZ1Si9CCumHg5JK4+h65lRKXPzJBo Hd5/FnNULzYFVVMXS4tZagTsi X-Received: by 2002:a05:622a:164f:b0:344:b216:ada6 with SMTP id y15-20020a05622a164f00b00344b216ada6mr5521539qtj.302.1661463669092; Thu, 25 Aug 2022 14:41:09 -0700 (PDT) X-Received: by 2002:a05:622a:164f:b0:344:b216:ada6 with SMTP id y15-20020a05622a164f00b00344b216ada6mr5521525qtj.302.1661463668879; Thu, 25 Aug 2022 14:41:08 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id i8-20020a05620a150800b006b928ba8989sm397643qkk.23.2022.08.25.14.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 14:41:08 -0700 (PDT) Date: Thu, 25 Aug 2022 16:41:06 -0500 From: Andrew Halaney To: Douglas Anderson Cc: Bjorn Andersson , Mark Brown , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] arm64: dts: qcom: sm8350-hdk: Specify which LDO modes are allowed Message-ID: <20220825214106.7d7mzhpavpuwyik3@halaneylaptop> References: <20220825164205.4060647-1-dianders@chromium.org> <20220825094155.7.I6799be85cf36d3b494f803cba767a569080624f5@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825094155.7.I6799be85cf36d3b494f803cba767a569080624f5@changeid> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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:05AM -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: 9208c19f2124 ("arm64: dts: qcom: Introduce SM8350 HDK") > Signed-off-by: Douglas Anderson Reviewed-by: Andrew Halaney > --- > > arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > index 0fcf5bd88fc7..69ae6503c2f6 100644 > --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > @@ -107,6 +107,9 @@ vreg_l5b_0p88: ldo5 { > regulator-max-microvolt = <888000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l6b_1p2: ldo6 { > @@ -115,6 +118,9 @@ vreg_l6b_1p2: ldo6 { > regulator-max-microvolt = <1208000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7b_2p96: ldo7 { > @@ -123,6 +129,9 @@ vreg_l7b_2p96: ldo7 { > regulator-max-microvolt = <2504000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l9b_1p2: ldo9 { > @@ -131,6 +140,9 @@ vreg_l9b_1p2: ldo9 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > }; > > -- > 2.37.2.672.g94769d06f0-goog >