Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp868828rwe; Wed, 31 Aug 2022 12:30:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oq+SNOmsBzvKvzuJGPC/hTXMRJ3/NQAx5W8ppwblwvHvWZ44S3gVsESI5ZcWigSgOlZwh X-Received: by 2002:a63:91ca:0:b0:42b:4847:90dd with SMTP id l193-20020a6391ca000000b0042b484790ddmr22561607pge.28.1661974245318; Wed, 31 Aug 2022 12:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661974245; cv=none; d=google.com; s=arc-20160816; b=PwecQr8iBnzHbt5a1v/v1brsyUyHeCxKhLdd3/mIaog6kUSltNY3amNiLYglYF+5RA /DzotN63HXvjaFXn96KFGtcl43GgYRr+1T2kKoHbHm90jm1ePCvRBs36aMB782+Ew+y5 y05xb1nKKH0CG5MxbVWN89Cw3BcTHoRIMzMEYSgcHecizgiBnZ8luYZ8AlCiR0CfUC+v UjtGZNvD12Dzn68jlp7zkJcA+6TV9oCwUBxOFc3dYxrUxIGthNvQ9Ilw32Gc+KlfW//U VBUYRT69rkvcSW/6nk6zOmyFlnu5swQctwrXUoQWZs9zNIo9lEZ17HBK/xhm2gbnL9vr 57ag== 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=rUjqtYUIKxPVVYBFMkLE+l8nb11gl1oPqWCY/ZAXF6g=; b=DRMjhPKhugT4h30z9zsjkCXKNwL+zFcJV/BU5x6gMHho3wa3aEzIepfa99VXRqFZu+ Hh+tOn+JE0AhKlNdOcbB82t/IMgRNYER1bd/UBIL1oc2CZlo/CsIEWzupJn0SjsTZGgY yteVdI7i/t0erVih47LT1UUCgC0byxW6093FRnNY+mPnPcH7bRhy4Fdk2ySeSfO/gORH XwnWFpSQo+I/7e1sLiFCcHJPsYg3+9gonsxZOoLfHQshFroNImPv7+8cNtZD2l9UmnZr 6sR0yk3ikf7lkaqmwcGHK5yDcyZBo0QWCZo6BRtF+3mbmLriItGwY4w57P0TDfEHX4XG 1MIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ycxs2Vm5; 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 oo15-20020a17090b1c8f00b001fdb1694973si2802257pjb.157.2022.08.31.12.30.32; Wed, 31 Aug 2022 12:30:45 -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=Ycxs2Vm5; 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 S231447AbiHaTAl (ORCPT + 99 others); Wed, 31 Aug 2022 15:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232526AbiHaTAa (ORCPT ); Wed, 31 Aug 2022 15:00:30 -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 1EC563F1C5 for ; Wed, 31 Aug 2022 12:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661972424; 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=rUjqtYUIKxPVVYBFMkLE+l8nb11gl1oPqWCY/ZAXF6g=; b=Ycxs2Vm5mVEHzET8oz4MowWiAzbaLMEsSDJlV7DQbfKuOeXZpMzet8m4S8LGBBCNB29941 GiQoP1AExlKFp+g1f5AEscXpxIpCRfMRM16SDPTDPZR2AOTnoh+TT7TWHmsE2EuqYD0Zju O0bbAt2lJ7KB+vYAAe38f4U+4SPsTqE= 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-100-Cv04KqXVNGuz-4qFq1OVhA-1; Wed, 31 Aug 2022 15:00:22 -0400 X-MC-Unique: Cv04KqXVNGuz-4qFq1OVhA-1 Received: by mail-qt1-f197.google.com with SMTP id ci6-20020a05622a260600b0034370b6f5d6so11948720qtb.14 for ; Wed, 31 Aug 2022 12:00:21 -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; bh=rUjqtYUIKxPVVYBFMkLE+l8nb11gl1oPqWCY/ZAXF6g=; b=v9omL1jsBjQV5F1dwFanM4URt56uaNIeB2gsCNZ5UUEYk7dGFyquFVeM8fQng4qLsa YquDajqx0/ibb0yYOpKFmtBx/mr6Bwb3VWg9RCJ6FkLPyrd9k/iCLf8TpZ5amNJTo6iS LSZezQBNuSx1kwPlCGtq++VjOLchzIyGL5VHaVrWkhEfKNug+3S83WfXKJzEH6ZYt8ZY dhcBgXAIb5QGp6voTjmGkJGQA9ErlnbUJQxOALs9I7cM294ceGD4dRBZNfjxWGw+Wl6v AkzBiAtDNjkHhjFHTLB3r1Tvn5tHyzshceYpROLz8HThBX++Y2LkGhZakGpsg8Tsdghg 30ig== X-Gm-Message-State: ACgBeo2ux6YSYHLAlDNvN79upja20OwfkdTTjf38Xg7VGe92Sbrbgrik 0doLHyGli4oCPhjNyHKTNTuwnTZyY0DtByf49m2ifPNL6J7ir6nQAThn6QDOwk7r/m6p89h9U4H r+FUY8eTQpaQ8mGzurzHUiaCO X-Received: by 2002:a05:620a:4627:b0:6bb:b3af:f5f7 with SMTP id br39-20020a05620a462700b006bbb3aff5f7mr17071666qkb.71.1661972421169; Wed, 31 Aug 2022 12:00:21 -0700 (PDT) X-Received: by 2002:a05:620a:4627:b0:6bb:b3af:f5f7 with SMTP id br39-20020a05620a462700b006bbb3aff5f7mr17071648qkb.71.1661972420924; Wed, 31 Aug 2022 12:00:20 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id t8-20020ac865c8000000b0033c36ef019esm8474410qto.63.2022.08.31.12.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 12:00:20 -0700 (PDT) Date: Wed, 31 Aug 2022 14:00:18 -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: <20220831190018.3dexkam3efdcfysf@halaneylaptop> References: <20220829164952.2672848-1-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. Thanks, Andrew > > 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 >