Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp243486rwb; Fri, 2 Sep 2022 13:23:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR57q9smG0tV0tSEi3YpFhYh7cprfnyHFknh+Q0rDVs4x7iYplJ9LhKNz1HfdYukEJz4x7Ri X-Received: by 2002:a17:907:75ec:b0:741:484b:3ca4 with SMTP id jz12-20020a17090775ec00b00741484b3ca4mr21970571ejc.316.1662150215847; Fri, 02 Sep 2022 13:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662150215; cv=none; d=google.com; s=arc-20160816; b=w5I+1bXdhWcKXWiLigHnFByQPZE1zxpQFHIzn+sjYVh8Ysm4nkMlv2AUBbZHCjsvSj zdwvUmBMysDuBW1wYFi+y2K6G7yhYflownAIZhYQ7KBIYLNAOhiCv0qk8lnArTw4+fE7 9MN+7EnNXAbmrbna7QSducFCXqDOuosY1kUKMwy0yWT5q/E/cAWUbgDUDORBg+gM0a2U b2xrPyfkk7WAN+HbyZ+OxWpqcEyszdKAfRGvSFIHoQqv8pTj/Oq88cueWwHtfGhiRLkt M9R9w9+UtE6zM4bxfO5JwuuNCD790ch0xEYsDOUCB7oEiwQm2Ia++br//5wJp46HeljX hXBg== 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=H80XyH2N7aCchJ9N825/YoSYVLsh+URbySgK/RUDEoA=; b=bx/6cBHFUCfghxnKemiZrt5JMAow5esvnPFKJFufGd2iW0gf6B+J7s1BDP+1IzbDlx FIDkGO4Vw3C3qdKXHBTAB0P/yUH96wIe4oLRTVNiY2+WlEc2wCtfLhmbT+4fxJD1+lQZ zDvSyKLlrUIQ3bVmwZrJXt2i9fz2tzZFcrZIwLWvgcea51zyCndg68XwT66xjC6ZwtbN AYx+xznneygj6PnQ1gJ966CUw/2ck95uZvZpASs3ikOp5Eq0GHRdofiBDqsmd5gZAZ8T vTaNq654Zly0RBOea/I/fxfY7HDsbsZMln7skEflf5MONgPnY5MqZWhwpEl/KLVHZlpm eKOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ITuD0jBs; 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 q6-20020a1709064cc600b007418e87eea8si2142886ejt.770.2022.09.02.13.23.08; Fri, 02 Sep 2022 13:23:35 -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=ITuD0jBs; 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 S230206AbiIBTAy (ORCPT + 99 others); Fri, 2 Sep 2022 15:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiIBTAt (ORCPT ); Fri, 2 Sep 2022 15:00:49 -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 9479325293 for ; Fri, 2 Sep 2022 11:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662145173; 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=H80XyH2N7aCchJ9N825/YoSYVLsh+URbySgK/RUDEoA=; b=ITuD0jBsoT/3a3aUcIL+CIXTfXnJ4MnMwN5teK3Rtraw2ZKr84EgOY1E+51IXW+HW7bjak lOgDPuOmGxVAYMFdeeMTEnklUxeDiR77olix2nfICPNGtz8DLBT6YPVj6zeG00LYMlQs3I PnHArMxJad0qavqccahEjY5sw/2HPLg= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-226-U-nYhJvEO3SV5CfYNfR-DQ-1; Fri, 02 Sep 2022 14:59:32 -0400 X-MC-Unique: U-nYhJvEO3SV5CfYNfR-DQ-1 Received: by mail-qt1-f197.google.com with SMTP id y12-20020ac8708c000000b00342f1bb8428so2189684qto.5 for ; Fri, 02 Sep 2022 11:59:32 -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:subject:date; bh=H80XyH2N7aCchJ9N825/YoSYVLsh+URbySgK/RUDEoA=; b=2Ysk68EwHXktCkF3o8MoI2OEwjdO43Ybz+7a1u3ZG9hIyzRV325k0eeYK2GnihHa/9 YVjYUEZej/A3GvK/2YyeNpWDZcIYf3hmzWkPD8dU+m0T9M3HQRpRr7/dC85CGEuOoPDk DGpfRZWPyRORfXOSwq3PAg5odQz+YEjqTeG+aY787WeQgwegt2Mf569iLp6JXqDHkbCy u6C2Kq/U7shSvKeuDwbNkcsa34GZvvBd1YrhAlcKyRV5HWGDn5D6TkmJSr6Nc2a9aZV1 oRdTH/FF45c/WwIpwMuGn73vjOyJZ2TCE5XtEAS5BBbOmaFCuqXerxV4Xn13rlLAjyA7 RY2A== X-Gm-Message-State: ACgBeo3+BR4VECaOwMpEuKLgL/A7c9MOu5QFicXUlMMbss9J7Oga11rR FosyunRbwZMpvZFmjHsDPbqnOaElNohxFzFcUBznBZuYKUBsGOX1joRkyvIqVMefFRBCQiXyQ0E Eip4BAKoBBa5BZ+8iyVBOYi9c X-Received: by 2002:ac8:5f4e:0:b0:345:45d:3701 with SMTP id y14-20020ac85f4e000000b00345045d3701mr26282885qta.139.1662145172318; Fri, 02 Sep 2022 11:59:32 -0700 (PDT) X-Received: by 2002:ac8:5f4e:0:b0:345:45d:3701 with SMTP id y14-20020ac85f4e000000b00345045d3701mr26282859qta.139.1662145171991; Fri, 02 Sep 2022 11:59:31 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id d3-20020a05620a166300b006b5c061844fsm1805812qko.49.2022.09.02.11.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 11:59:31 -0700 (PDT) Date: Fri, 2 Sep 2022 13:59:29 -0500 From: Andrew Halaney To: Doug Anderson Cc: Johan Hovold , Bjorn Andersson , 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 Subject: Re: [PATCH v2 0/6] arm64: dts: qcom: Fix broken regulator spec on RPMH boards Message-ID: <20220902185929.neoizjcrmxuxgqaw@halaneylaptop> References: <20220829164952.2672848-1-dianders@chromium.org> <20220831190018.3dexkam3efdcfysf@halaneylaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831190018.3dexkam3efdcfysf@halaneylaptop> 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 Wed, Aug 31, 2022 at 02:00:18PM -0500, Andrew Halaney wrote: > On Wed, Aug 31, 2022 at 07:52:52AM -0700, Doug Anderson wrote: > > 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. > > I can take a stab at this during the week here I hope.. I owe Doug for > the slew of patches and have wanted to peek at how all the dt-binding > validation stuff works anyways. > Here's my attempt after a couple hours of banging the head on the wall: https://lore.kernel.org/all/20220902185148.635292-1-ahalaney@redhat.com/ Thanks, Andrew