Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp207399rwn; Wed, 7 Sep 2022 15:15:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR63rufgoANiFVSFnopyGBpssJ4sybOIYJCdUylac4AbRlflIATXRhLhp3CYmPdVDHgaj/XS X-Received: by 2002:a17:907:2cd4:b0:772:39b6:b77d with SMTP id hg20-20020a1709072cd400b0077239b6b77dmr1292963ejc.572.1662588915806; Wed, 07 Sep 2022 15:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662588915; cv=none; d=google.com; s=arc-20160816; b=ZxwHMFoIdct4jehoBuR6SK5HBS5nXQ/ZfUh5f/je6/EKCEAubGtsTyjys6dpoQ1eP2 R9KSLP+XRhPeZN8EwldbT0oXI/l+osfwd2G9u0GWz1gJqDWRx9LED8AgJeqX+wqMNlq7 cWZ2Rm5vaoF2CYipqolfvwjSyKKfIiqG10L5739p/vtCvWWh15Ke8Zi2EUMXSVRo/iED XGgs2o3uJ8d6QTIx7QNIfWwrbXDD0YeMFjXIJieZsMcBMN7x6BPuffZpv1XEVMEq0IvJ WgHxHnqmCRdlGWiyj46EjSSqncLs6ypcJYtXQn5fF9QGBWlHA77mtjI9iaZ9KoFOnXQp sLNg== 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=lupOQBDl9M+eSrYMhhygPunyzKVvpUXpQehMzs92JzM=; b=mIipiKwLSq5cNN3kF2HmQurePjkn/oiCd+RTqfO89/scpDREufUL260zCh5Ukw7pM9 S5SteP+pyvy08twHcJ9h44+G9z3r4w/SpcAmKaXYXLnjFnoE7u+9YvNVxJBZb5hJHKOl D5JgGKH9Yo/TX8WUlih0KTQYeMh35oIpqozAsnjrO0kAoJ06Vl6Y4f/pP9GS6P+nn7On QB1gYBzcUQJisI83dLhXE6uI6BQLFTGPLyh2hNvJbYGS7ivxkA4MMuEHZ88yb5Y7BfOG jLoYchy7nD7ps/881zpCzlUtatqoSIJjIAxHVKW59ZsGylra0tiKJgZ9emO8iiZos3NF v5pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="E/nw5opg"; 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 sd33-20020a1709076e2100b00734be0ce0e5si535359ejc.311.2022.09.07.15.14.51; Wed, 07 Sep 2022 15:15:15 -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="E/nw5opg"; 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 S229523AbiIGUy1 (ORCPT + 99 others); Wed, 7 Sep 2022 16:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiIGUyZ (ORCPT ); Wed, 7 Sep 2022 16:54:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF26CCDE for ; Wed, 7 Sep 2022 13:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662584062; 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=lupOQBDl9M+eSrYMhhygPunyzKVvpUXpQehMzs92JzM=; b=E/nw5opgR5c4+9Zsp0XxyLJQ4XSk+FG/wl3AirlHFXqpTLPMohGIjAseXDxtvX1wADAGSc khrC3sDwlBrBu2/OR2R8AZoKl7ckHEyrDd2xKgPEeSOibFWi4+lY6qX+GKsYHfxBtFSJK8 6Se58iLvf8uxjo3gpIFhXSfVSo/I2Bc= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-341-M6vPeadBPhGvG-TysW9STQ-1; Wed, 07 Sep 2022 16:54:21 -0400 X-MC-Unique: M6vPeadBPhGvG-TysW9STQ-1 Received: by mail-qk1-f200.google.com with SMTP id bm11-20020a05620a198b00b006bb2388ef0cso12800813qkb.5 for ; Wed, 07 Sep 2022 13:54: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:subject:date; bh=lupOQBDl9M+eSrYMhhygPunyzKVvpUXpQehMzs92JzM=; b=ut7G9uyfBA6Y6eyMQ+2D81nyNZZLgNKeBwZYYGUN4GA75WhW5IKSHGF96kywaLrCOg 6nH+0AaBuavccql/n6chNP6odMf9Xl9jXusgFQocHoGwrCLg+/vZebvmtprkM5EA6K55 SDPpFyBeOQvd4tl0lDaFsabbMVsDTEcWucUpgHkIQbo+sYt/ZiRVP5kiWPR9gS6+Iv3E 6h9kSoQCXT1QuG7bXNQn5SU++ERk4058MglDMy30+D4g+6EunxYn5k94bvvnEMExRXuj v40jKPWHsFaiKFMdTA1XozcEp3BhccEppFodSEr6VE5Gw3I2phxR4hfg5E2tCkm20t3y Bu3Q== X-Gm-Message-State: ACgBeo1QMtJ19mI+ifewJLrR9eL+tCMroSzmLGwAd2OUFWbpaTafY9F4 +gMKR/x2IpA+5c5Wa4aEJwt1gNswgMORZBYPaOo7jpofkVv41xJaFBuflqrojsTrPbDwFfEfwq5 uJcojRX75GBJH9xj2MjHoYkiA X-Received: by 2002:a05:620a:4409:b0:6bb:58d6:9d3e with SMTP id v9-20020a05620a440900b006bb58d69d3emr4182716qkp.472.1662584060829; Wed, 07 Sep 2022 13:54:20 -0700 (PDT) X-Received: by 2002:a05:620a:4409:b0:6bb:58d6:9d3e with SMTP id v9-20020a05620a440900b006bb58d69d3emr4182709qkp.472.1662584060629; Wed, 07 Sep 2022 13:54:20 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::a]) by smtp.gmail.com with ESMTPSA id q34-20020a05620a2a6200b006cbbc3daaacsm224671qkp.113.2022.09.07.13.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 13:54:20 -0700 (PDT) Date: Wed, 7 Sep 2022 15:54:18 -0500 From: Andrew Halaney To: Johan Hovold Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dianders@chromium.org Subject: Re: [PATCH v2] regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies Message-ID: <20220907205418.lqwxwyebqlt6lm7z@halaneylaptop> References: <20220906201959.69920-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Sep 07, 2022 at 08:28:11AM +0200, Johan Hovold wrote: > On Tue, Sep 06, 2022 at 03:19:59PM -0500, Andrew Halaney wrote: > > For RPMH regulators it doesn't make sense to indicate > > regulator-allow-set-load without saying what modes you can switch to, > > so be sure to indicate a dependency on regulator-allowed-modes. > > > > With this in place devicetree validation can catch issues like this: > > > > /mnt/extrassd/git/linux-next/arch/arm64/boot/dts/qcom/sm8350-hdk.dtb: pm8350-rpmh-regulators: ldo5: 'regulator-allowed-modes' is a dependency of 'regulator-allow-set-load' > > From schema: /mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > > > > Suggested-by: Johan Hovold > > Signed-off-by: Andrew Halaney > > Looks good to me. > > Reviewed-by: Johan Hovold > > > --- > > > > v1: https://lore.kernel.org/linux-arm-msm/20220902185148.635292-1-ahalaney@redhat.com/ > > Changes since v1: > > - Dropped first two patches in the series as they were user error > > (thanks Krzysztof for highlighting this!) > > - No change in the remaining patch > > > > Krzysztof also asked if this patch in particular should apply to other > > regulators, which I think it should for those regulator's who implement > > set_mode(). Unfortunately I don't know of a good way to get that > > information in order to apply it at a broader scope for devicetree > > regulator validation. At least with this in place RPMH users can get > > better coverage... if someone has suggestions for how to broaden the > > scope I'm all ears! > > I guess the commit message could have tried to capture that is feature > of the hardware (as Linux implementation details shouldn't impact the > binding). And apparently there are regulators that do not need this > (e.g. RPM). > > Johan > Thanks for the suggestion Johan. I've posted another spin with that addition and your (and Douglas') R-B tags over here: https://lore.kernel.org/linux-arm-msm/20220907204924.173030-1-ahalaney@redhat.com/T/#u Thanks, Andrew