Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp600728rwe; Wed, 31 Aug 2022 08:00:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7wZnLpkjcrvS7MUwZkJ+zf8MLr4wXaGKZqtf1rS50Ckgstm53rjfw/IrTjlNKmYp+MwqLp X-Received: by 2002:a17:906:9c82:b0:6df:baa2:9f75 with SMTP id fj2-20020a1709069c8200b006dfbaa29f75mr21598125ejc.762.1661958003593; Wed, 31 Aug 2022 08:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661958003; cv=none; d=google.com; s=arc-20160816; b=wSlzQbqTHGknjXBcrSHh84INrvuVSlH5yDMXi8KRGJNsvusxO56UPAB9fKTNEckBh1 TdaN4edRfBalhuxvRnMdfrGnHVyPeuweiYUcPvRocwajN674wG3iNDlM0UCb3GfBJdPK VOzEqoBeI8/W8H/wA02rLDKX43U3Fnc3tRVZKZqBjaf6bUATD9ZETaLeWVmerjpF9EPw Euy6sQ56gd0D+UlB0AFhlUXF6A7IXo3Uf3cThGhbMwNuRIH3QP23SXChAkA2qxNxsyuQ LkwqxWa4y1XuWB9qde1SVWJarlVSUJcXUfbYcoxCDxss/STlbnTq4KXv+6BKTHZUpM7A GrtA== 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=3SBHDQAodprZxU58N6fxxm9XMEGZF1r8qJ0Wxzeitls=; b=c6oXLBOdI8CtBRZksD69PZEj+MZLZQ6VbsSGnVPjBkqmxauv91KDbkhdwc4lOyykhn 0zi2cqrzpRCLMc/p+VA5AMB+o5r0PKhiMJwWJDwG9Y1dRMSdfXVd0k6Qq+c0wh3TUKiE pEF+41+hz/7MQDWZCiVjAp8B65HziFOy9LKikRltP7TS+xWqqpLHiK/JXevFnwoDdXrB EMHYu5snwZ8BiMVoV/bIIw9q1TdMq0qV48D7YooaufDJd9IQ/VPqAmJxHbYa2tPdtKyE Qrf0MAr1YbOMozy9gZceMfEQeCWHldD+d+Ma4n8AVlIQ+E1UG6nGJhiJn3Mq0oBxkgsr tuow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=V3wivMLp; 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 h12-20020a056402280c00b0044660f40ed5si5621457ede.256.2022.08.31.07.59.32; Wed, 31 Aug 2022 08:00:03 -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=V3wivMLp; 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 S229954AbiHaOxM (ORCPT + 99 others); Wed, 31 Aug 2022 10:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiHaOxK (ORCPT ); Wed, 31 Aug 2022 10:53:10 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 829CAC992F for ; Wed, 31 Aug 2022 07:53:09 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id se27so21168903ejb.8 for ; Wed, 31 Aug 2022 07:53:09 -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=3SBHDQAodprZxU58N6fxxm9XMEGZF1r8qJ0Wxzeitls=; b=V3wivMLpqCGUfOvErwvyzMGDMB3actPkoJXjB9x+5QdBvqm1czGegZ67hUVOoXcOJp aV3bW0fiY5lgbhj0nESLHHfiLaosxh/WZORVW3dAdHzsGuCDNZZOCddyyR/erM5pSLuc B8clr5tOPV87ktHrDNy3qTqsxctKihiE8SXYo= 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=3SBHDQAodprZxU58N6fxxm9XMEGZF1r8qJ0Wxzeitls=; b=clynGXFw03K8nDGYjs8JPF9IKNlIIFnqGcMaIpT/dccVaLLJUz1Vk7O191fWz2YMe6 GyqlinAPlO3mtsycATyWMp/EyHAwLAMSV/H3CeQ3J9dlcr8/480mFxNX2CYFlqe/kT9J Ekrp21KHL9EV/fsTRmL3O47z8WATHbkKc6FzrJWoGBH4sNZApvSJsEGqttWUEvS7orX4 3gQlJWkDmEkG3aeoUpYwkZyOuwDkgLfJCxpvpMODGesaApiUNmrXgXp0k9OI55zCOdMG okPk7MYf6GY72sniDjSWUJxpw8KTWvh1eQ6lC0pOVImKAdKSxjYWMMvxuxcheSHW4iXP 5osQ== X-Gm-Message-State: ACgBeo08d/ipb8NBdHXArdBET/HiQoBcbBNblOGkIr3gflrYzXYu7Rno D5V8bGcOcErYC2yBk7luKMfky/abKug3rASn X-Received: by 2002:a17:906:8251:b0:741:7a62:2376 with SMTP id f17-20020a170906825100b007417a622376mr10686374ejx.689.1661957587858; Wed, 31 Aug 2022 07:53:07 -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 fv29-20020a170907509d00b00711edab7622sm7183209ejc.40.2022.08.31.07.53.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 07:53:05 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id v16so15883634wrm.8 for ; Wed, 31 Aug 2022 07:53:04 -0700 (PDT) X-Received: by 2002:a05:6000:15c6:b0:226:f246:6e70 with SMTP id y6-20020a05600015c600b00226f2466e70mr177095wry.617.1661957584434; Wed, 31 Aug 2022 07:53:04 -0700 (PDT) MIME-Version: 1.0 References: <20220829164952.2672848-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Wed, 31 Aug 2022 07:52:52 -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: Johan Hovold Cc: Bjorn Andersson , 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 Hi, On Tue, Aug 30, 2022 at 11:47 PM Johan Hovold wrote: > > On Mon, Aug 29, 2022 at 09:49:46AM -0700, 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. > > Should you also update the bindings so that this can be caught during > devicetree validation? That is, to always require > "regulator-allowed-modes" when "regulator-allow-set-load" is specified. Yeah, it's probably a good idea. I'm happy to review a patch that does that. I'm already quite a few patches deep of submitting random cleanups because someone mentioned it in a code review. ;-) That's actually how I got in this mess to begin with. The RPMH change was in response to a request in a different code review. ...and that came about in a code review that was posted in response to a comment about how awkward setting regulator loads was... Need to get back to my day job. In any case, I think these dts patches are ready to land now. > Perhaps at least for RPMh as it seemed you found some cases were this > wasn't currently needed (even if that sounded like an Linux-specific > implementation detail). I think you're talking about the RPM vs. RPMH difference? It's actually not Linux specific. In RPM the API to the "hardware" (actually a remote processor) is to pass the load. In RPMH the API to the hardware is to pass a mode. This is why RPMH has "regulator-allowed-modes" and "regulator-initial-mode". Both RPM and RPMH have "regulator-allow-set-load" though... -Doug