Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp847265rwn; Thu, 8 Sep 2022 09:32:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR6B6dEYwk1UAGyu7VR2XXj6wgB1o3Zqm+dTNrRA/be8u+an2O9/D4RMSTOEgoHEXlBRn3C0 X-Received: by 2002:a05:6512:1316:b0:48d:2549:1158 with SMTP id x22-20020a056512131600b0048d25491158mr2809549lfu.626.1662654747945; Thu, 08 Sep 2022 09:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662654747; cv=none; d=google.com; s=arc-20160816; b=fKCLaK4Pk5bVRu8nsZRfe3BcwLwyzGqZWunNkte72FTO3XzwrNUPOmJJLKBXqV0NNF GSzWhCDU4fspGSifB2KQcw23HCvvQ2ZPZJAEs++VxAq4ORWjiXeOE9+vjjbtI5yEkE1M l5C6iU7c/I1y2s9h2wYyKqeV9nGn0Qn4zshzLlYlHHEzIV26BGQJl6zqpAAUZNE3NNYw Idqf9Pn7sCzUs8v1zGe0o7WGPEWaEObPej5wEwfJxUDx8pNAhAvXHWbtEEPTLC7LrPpL gcXFHNeOdfVITywklmFLYvJ3rJxQSlgUIadOAvuJ2AGpEu1DUAaMMkR16/5lA1DvAtLH 45qA== 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=jz2D7E0X51AWJoi4tRV8BKb/2xDyrAfW/RbFvoS4Z8U=; b=KK3y936140bwu0cgMDsnJn+66cj9nshobm+Xj39ZxQIPVvv7Qjwg14DhIiT6MT9ScW uQzCxhcEV0WZkIEfCigmN9I/BY2HuHYZjIxBe5TD0+iCrjehKB+xfmtCq1za4uJAH0gM z2Vl0VFeb9MItz89kWkzEPkkMQGrvuzOG95rmP3loHdOXvBs5bcoJHCvhPMKIm31sfnX xF6U2+7tkbFMtSj/yDUvTm2eJgBzZ0YpdWFV70/J8NGOjriy4AbYcGvO3f6Zec3pa1Hh VhmEyg9crt0U7nZTP/Wm//GgX9oOsDLwS7tmntosAUX2IKHEg8GXEMAxlKxBWb/P1zmj pBLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KIq1Id+M; 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 i24-20020a2ea238000000b0025e20948c6fsi8351252ljm.287.2022.09.08.09.31.57; Thu, 08 Sep 2022 09:32:27 -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=KIq1Id+M; 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 S231820AbiIHQFQ (ORCPT + 99 others); Thu, 8 Sep 2022 12:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbiIHQFH (ORCPT ); Thu, 8 Sep 2022 12:05:07 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01E5252BF for ; Thu, 8 Sep 2022 09:05:05 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id dv25so9856911ejb.12 for ; Thu, 08 Sep 2022 09:05:05 -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=jz2D7E0X51AWJoi4tRV8BKb/2xDyrAfW/RbFvoS4Z8U=; b=KIq1Id+MXyPYu9JBhV3bG7ZTwelv4qKxj6Jou27A0dZJifV+5yI3PofxjTUFCXTu8+ hxdEMqt47fyhhmXEYp5HeSrWXhM2A90/FQNezs3+TPrJgmFRZXQSgNzwl775trbxHoZN +kfYeRnJ/++eTov2K4+Pfn4OKlb6/Yu7W/IpI= 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=jz2D7E0X51AWJoi4tRV8BKb/2xDyrAfW/RbFvoS4Z8U=; b=N9FJOd/qw2aTr0OiUDSF8DAMFyoywsY7p4DSrOGP69ZIhsh1Y0CMRrusIgPSId4feT BWh7JPz7NKEL7O/UQn6qj3pylEnA83x5uUHfKlBL8/otjEMM+1xi4Av/h6u8aJ6VGbXW 2YE8uw8365fStGZCMJYl37iRc0v0JZSc98XDCkGjlCQorzXAApWzI/dkVGMHm7TIDOCO AFL0kL3tQic8mOVerga1vkUGOQNLGgPlJeg2gUuefc93peiUsF7ADlyhVkj2xtfYjCxJ U7iDuskoO2ReP3FQ75TjDRGeS2mkzk3YoCpiobzLi+tsChy/DZ+OqaYCpzTvJsJOD39F oAOA== X-Gm-Message-State: ACgBeo35BW0qgZYRIpP5yvuBKqFudNDxvpbaGCV2TsXnKsHKDeTKtLkH ehOa0Vw3uhU6MBsehePfqIavoc4vJeX2gXqdKXY= X-Received: by 2002:a17:906:2245:b0:715:7c81:e39d with SMTP id 5-20020a170906224500b007157c81e39dmr6853410ejr.262.1662653103827; Thu, 08 Sep 2022 09:05:03 -0700 (PDT) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com. [209.85.221.54]) by smtp.gmail.com with ESMTPSA id su23-20020a17090703d700b007477ee86946sm1387442ejb.87.2022.09.08.09.05.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 09:05:02 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id t7so21890383wrm.10 for ; Thu, 08 Sep 2022 09:05:01 -0700 (PDT) X-Received: by 2002:adf:f90d:0:b0:20c:de32:4d35 with SMTP id b13-20020adff90d000000b0020cde324d35mr5527227wrr.583.1662653101282; Thu, 08 Sep 2022 09:05:01 -0700 (PDT) MIME-Version: 1.0 References: <20220829164952.2672848-1-dianders@chromium.org> In-Reply-To: <20220829164952.2672848-1-dianders@chromium.org> From: Doug Anderson Date: Thu, 8 Sep 2022 09:04:48 -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,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 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/