Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp272542rwb; Thu, 22 Sep 2022 18:02:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77jWEhVS+lOH9OGQMufTQydAKoXapkRobb27OSbAYpQwtbkv/JgLyYg4Eau4iwymk6RtWe X-Received: by 2002:a17:90b:4d12:b0:202:e772:fa09 with SMTP id mw18-20020a17090b4d1200b00202e772fa09mr18660195pjb.30.1663894976951; Thu, 22 Sep 2022 18:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663894976; cv=none; d=google.com; s=arc-20160816; b=s+bTtHB+3ATc3kUSVMEUOD4932JEK+1B+1TOGYWmsS1WByGUCV/2lePt5MxddPujne qRv5e0fRrtIlgNQH92li2p7rILr+/i6r5D7Tom03NwSLq5pmJVUII/PNI/n1UX85K5AO edbVpAWScIjW6+sC6YVeawXC4B1O83nvpaY16G7L4TX9ekjL5kAPzRmUwqPhU3YHiZLz TtkG6fx4+Shm+hd5HFproS3N8Qr8V7Hf6cN6gEEb7T/oi3ePS8x8cg497JmPaVZJtelz HtTpmC6OQVSgxDaKPiDOoXjXT/fT7VzkKR180yQCxuojKJoQE6rnIdLsHu2O+//Y5BKk hh4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aLogDFClUaHmVjdLKdGBxuqIp3POWjCphf9NKFUf6vY=; b=GH9+ZVOsdzT7DtnX+Ml6oHW8wp/0Y+p2pCaeZ651DM6rP2NGtD6h9+QpjzaoMOq+Zi DGSB5yCVfuO0jCwJ9Pq1sIHUu/88gFTwR905CvhpPFptMlCEjXgaujsImafGJqZ3UN26 QzPGYWV76cYed2Pq25/P6R8VS3ov7uW0V8HhI/foMYvZgBj4Joa8Cd4Vxih6eZ7iGUmA 5zXqk0OaZJDcI88xeHw4LXHRZHIgnb12Fa/Po7glAllCqw0HV+2O8zfq3BDq7dR+nxuM d/Fvj/2u0HGUXVmHUS+v5MBvIFGRE9DaP+1rn3+IlzytVDZ5/rOlAqESQR9yULsrjPw4 oSEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UHDK37YE; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a17090ad58b00b002039b4cef32si1156244pju.20.2022.09.22.18.02.26; Thu, 22 Sep 2022 18:02:56 -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=@chromium.org header.s=google header.b=UHDK37YE; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbiIWAQv (ORCPT + 99 others); Thu, 22 Sep 2022 20:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbiIWAQt (ORCPT ); Thu, 22 Sep 2022 20:16:49 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B8612BE1B for ; Thu, 22 Sep 2022 17:16:47 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id lh5so24570681ejb.10 for ; Thu, 22 Sep 2022 17:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=aLogDFClUaHmVjdLKdGBxuqIp3POWjCphf9NKFUf6vY=; b=UHDK37YEBEWRvt5JsrLKrvJIUWB5xTR/q0yUMgQSTu3tC0v9tuXGprOwjgJ1SINKpC cXDdBBFZKpe3iarDNGMeAfHAfauJwIuls+boiKEt3WYMnZCiFWCnX+3BVXuVtNcXypXN e3bAXQpp7MTxx5VqeAvom5kXPGJR5itvNhFLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=aLogDFClUaHmVjdLKdGBxuqIp3POWjCphf9NKFUf6vY=; b=pDLAioRGAFxZ27vIZl40hDEFzow1BraoCNTCTmRwVddCBqxupm3XW0/cfG9W7HPwRG yYAXKx59MCKhaOH+kZEps74r4+LvIJzPmECOCueP9XlHZxy6GIVONGOUoEwI+fV/Oagb jp7Wn4F7apgu9nra6uFEo7vGVuCql9w2lxEuvHzeFQDSTpSnKSw3/Z4FYysCpDBSpliA MWuXCqgCobhkDLTDoxaSMNtgSdguq+kZjIkGDP/HwmDH0Y3sjMFiC7jPOO65DD8Pa0td OEQc3B+EUiAckh/RQjLgPLV+AoWUCrtYvGBQZHSSBAIgkY93j4ZLzoxiXTtDAP868qB4 ML0g== X-Gm-Message-State: ACrzQf3BSi0L1r3QLniLkiM+suqp6CQnEkSntTg5FcMnqG8Ss9ToP6In wWwqgQgrD8n/63lRxl6vT9/CBkwrJ0fnrm6L X-Received: by 2002:a17:907:a052:b0:780:c4e4:1715 with SMTP id gz18-20020a170907a05200b00780c4e41715mr4925075ejc.55.1663892205260; Thu, 22 Sep 2022 17:16:45 -0700 (PDT) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com. [209.85.221.52]) by smtp.gmail.com with ESMTPSA id o20-20020aa7dd54000000b0044e1b4bca41sm67844edw.79.2022.09.22.17.16.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 17:16:42 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id n10so17917955wrw.12 for ; Thu, 22 Sep 2022 17:16:41 -0700 (PDT) X-Received: by 2002:adf:f90d:0:b0:20c:de32:4d35 with SMTP id b13-20020adff90d000000b0020cde324d35mr3447220wrr.583.1663892201079; Thu, 22 Sep 2022 17:16:41 -0700 (PDT) MIME-Version: 1.0 References: <20220829164952.2672848-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Thu, 22 Sep 2022 17:16:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/6] arm64: dts: qcom: Fix broken regulator spec on RPMH boards To: Bjorn Andersson Cc: Johan Hovold , Andrew Halaney , Mark Brown , Andy Gross , AngeloGioacchino Del Regno , Bhupesh Sharma , Johan Hovold , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Vinod Koul , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" 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_PASS 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 Bjorn, On Thu, Sep 8, 2022 at 9:04 AM Doug Anderson wrote: > > Bjorn, > > On Mon, Aug 29, 2022 at 9:50 AM Douglas Anderson wrote: > > > > Prior to commit efb0cb50c427 ("regulator: qcom-rpmh: Implement > > get_optimum_mode(), not set_load()") several boards were able to > > change their regulator mode even though they had nothing listed in > > "regulator-allowed-modes". After that commit (and fixes [1]) we'll be > > stuck at the initial mode. Discussion of this (again, see [1]) has > > resulted in the decision that the old dts files were wrong and should > > be fixed to fully restore old functionality. > > > > This series attempts to fix everyone. I've kept each board in a > > separate patch to make stable / backports work easier. > > > > Affected boards were found with: > > rpmh_users=$(git grep -l -i rpmh -- arch/arm*/boot/dts/qcom) > > set_modes=$(grep -l regulator-allow-set-load ${rpmh_users}) > > but_no_allowed_modes=$(grep -l -v regulator-allowed-modes ${set_modes}) > > > > Fix was applied with: > > for f in ${but_no_allowed_modes}; do > > sed -i~ -e \ > > 's/^\(\s*\)regulator-allow-set-load;/\1regulator-allow-set-load;\n\1regulator-allowed-modes =\n\1 ;/'\ > > $f > > done > > > > Then results were manually inspected. In one board I removed a > > "regulator-allow-set-load" from a fixed regulator since that was > > clearly wrong. > > > > v2 of this series adds tags and also rebases atop Johan's series [2] > > as requested [3]. This ends up turning the series into a 6-part series > > instead of a 7-part one. > > > > It should also be noted that as of the v2 posting that the related > > regulator fixes have all landed in the regulator tree. > > > > [1] https://lore.kernel.org/r/20220824142229.RFT.v2.2.I6f77860e5cd98bf5c67208fa9edda4a08847c304@changeid > > [2] https://lore.kernel.org/r/20220803121942.30236-1-johan+linaro@kernel.org/ > > [3] https://lore.kernel.org/r/YwhwIX+Ib8epUYWS@hovoldconsulting.com/ > > > > Changes in v2: > > - Added note about removing regulator-allow-set-load from vreg_s4a_1p8 > > - Rebased atop ("...: sa8295p-adp: disallow regulator mode switches") > > - Rebased atop ("...: sc8280xp-crd: disallow regulator mode switches") > > > > Douglas Anderson (6): > > arm64: dts: qcom: sa8155p-adp: Specify which LDO modes are allowed > > arm64: dts: qcom: sa8295p-adp: Specify which LDO modes are allowed > > arm64: dts: qcom: sc8280xp-crd: Specify which LDO modes are allowed > > arm64: dts: qcom: sm8150-xperia-kumano: Specify which LDO modes are > > allowed > > arm64: dts: qcom: sm8250-xperia-edo: Specify which LDO modes are > > allowed > > arm64: dts: qcom: sm8350-hdk: Specify which LDO modes are allowed > > > > arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 13 ++++++++++++- > > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 12 ++++++++++++ > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 6 ++++++ > > .../boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 6 ++++++ > > .../arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 6 ++++++ > > arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 12 ++++++++++++ > > 6 files changed, 54 insertions(+), 1 deletion(-) > > I think this series is ready to land if it's a good time now. It looks > like you've already applied the series that this depends on [1] and > this one is all reviewed and ready to go. Thanks! > > [1] https://lore.kernel.org/all/166181675980.322065.3918715363441736917.b4-ty@kernel.org/ I saw you sent out a pull request, but it didn't seem to include these patches. Were they missing anything? Maybe you're still planning on a "Fixes" pull request? -Doug