Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp172219rwe; Wed, 31 Aug 2022 00:08:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5m6hD8mplruldm7s1T8+AG9zcBHzeEfjKyaKorGZvrx8aLFzW0go+Jv5qieRsHPW4ADxqy X-Received: by 2002:a17:902:f54d:b0:174:f4a3:766f with SMTP id h13-20020a170902f54d00b00174f4a3766fmr9638286plf.134.1661929708250; Wed, 31 Aug 2022 00:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661929708; cv=none; d=google.com; s=arc-20160816; b=VDLWkFzYfmAs5Aea8Y2qFtbcqFtKDX+QQKXUGhwbjzwSYmTkS+kXdEYRcQvUAtu+3f QRh9SRVaeNaVsCvXXDGbu1pgxa7qfaofCEs9tOhB7Yq5OIiONNszMbOkgBj/Am57BsYv irXxJgIjwXpyfZ/7TbnfAgY0o0m71itMUtk5gzTOkyVBFST5nHOAE5lbbZsIysdqtPgy TNta51kRiOTZl+997hf2/Ve5QfT0894OjVfFpsQ4oOD8z/pPv8CyZMmDNnnHw+EhPhvD 76AMKH81C5nBHCe105yMnm5If6gRpltPhcYvPiBGTaUcJ4OXe68V/oIp6bcCnBvC9znB oQSg== 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=KsM7KAX1KQnMiYv5oxmNT5EdWD40a4gg0vAk+JyX8uA=; b=Zq9pxGOlk9w6VH+KsoN99xqwKQn/f4iJwj95uGEduCkGy6EXoXb6XI/I2qn8nAOefh 00Pb7UoiuMikg+v586VeMN87WOAqezaAKB7fN8GSEMxatx0Q6oOJ4t0pHfvf0GQ1gbNL s2U6msXP8dwi0NDUp6Za4RdfzJiTIFFq02bOhqi2EXsbdHEFtyTGH4ph6WsTYgeKHwRb WKJ2eODemurkxNl/oGOgvIvQ+dItvaGN/ONUfpD1/9wSq7g6D/lcdK37A5F2Kk5wbV/4 r4xPrEeCWQ4dn+21tTgOj6HZ58MA9Rg6guO+PIJslYX2iG6028fUXpMkn49/hp5rsmWJ R+2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=svl1S5Gy; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a17090a4a0900b001fd699adb27si1035247pjh.127.2022.08.31.00.08.16; Wed, 31 Aug 2022 00:08:28 -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=@kernel.org header.s=k20201202 header.b=svl1S5Gy; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbiHaGmw (ORCPT + 99 others); Wed, 31 Aug 2022 02:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbiHaGmv (ORCPT ); Wed, 31 Aug 2022 02:42:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D54EBE4F6; Tue, 30 Aug 2022 23:42:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B2D5617B0; Wed, 31 Aug 2022 06:42:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 669F9C433D6; Wed, 31 Aug 2022 06:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661928169; bh=wHxNLZ8wYygk0ecxMitMpRPezWusffNg4BCOnaA+jtk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=svl1S5Gytc5jhHXKgx+K9sMMUOzCPtxMTxgyz/oObb2TsC/wjQaN2R8DQ5X8Jm6c0 295dqgKWJmTdL5jlW6h/BgfMtN3x6KUk0Wbgl/Brw9nV0ivEOJJijvyldXesbiGvJL OfXQ5IVvTQahjyB4Dw/Nd3OMfeewepl1DV0GYlHiZ5jZyNtqes6ViuogXvxpSL2Tyl 4itvK27HP5M7r/u5Tls9m9D62PWSSbOIIwodgnhpbyRihvw5aDRIo7Ky6cfwicrRHg 7roIKr8kDc3oLkc2XK/t2SVqkVT/X2/FlnRf7QRt7K76aPFyUTX0Q9dlYdULOj4Xyi h18u130lvPinw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oTHQz-0006E9-61; Wed, 31 Aug 2022 08:42:45 +0200 Date: Wed, 31 Aug 2022 08:42:45 +0200 From: Johan Hovold To: Douglas Anderson Cc: Bjorn Andersson , Andrew Halaney , Mark Brown , Konrad Dybcio , Andy Gross , Johan Hovold , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/6] arm64: dts: qcom: sa8295p-adp: Specify which LDO modes are allowed Message-ID: References: <20220829164952.2672848-1-dianders@chromium.org> <20220829094903.v2.2.I430a56702ab0af65244e62667bb7743107de0c96@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829094903.v2.2.I430a56702ab0af65244e62667bb7743107de0c96@changeid> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Aug 29, 2022 at 09:49:48AM -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: 519183af39b2 ("arm64: dts: qcom: add SA8540P and ADP") > Signed-off-by: Douglas Anderson > Reviewed-by: Andrew Halaney > Reviewed-by: Konrad Dybcio > --- > > Changes in v2: > - Rebased atop ("...: sa8295p-adp: disallow regulator mode switches") Looks good: Reviewed-by: Johan Hovold > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > index ca5f5ad32ce5..5b16ac76fefb 100644 > --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > @@ -83,6 +83,9 @@ vreg_l3c: ldo3 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l4c: ldo4 { > @@ -98,6 +101,9 @@ vreg_l6c: ldo6 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7c: ldo7 { > @@ -113,6 +119,9 @@ vreg_l10c: ldo10 { > regulator-max-microvolt = <2504000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l17c: ldo17 { > @@ -121,6 +130,9 @@ vreg_l17c: ldo17 { > regulator-max-microvolt = <2504000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > };