Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4909128rwb; Tue, 6 Sep 2022 15:02:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4lcCzaGTK6vsMqFOoC6jDi5H8IVUQzmM0XyRUFed+KVM02LZC7sNSyVn3Em6nDHzZ+F99G X-Received: by 2002:a05:6402:1445:b0:44d:844d:e76e with SMTP id d5-20020a056402144500b0044d844de76emr514715edx.313.1662501740162; Tue, 06 Sep 2022 15:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662501740; cv=none; d=google.com; s=arc-20160816; b=RsXbqQ4kmtvGJUzVcw33vBXXBqLH0skPTkCbQOewUgp9UhtO1wNgT/SdwsNBE6/TEL 5ub6UOrRMlk+gzPjyvXBWuOUsHyY+POFP3jXhfE3Ay99iS2U3xRcpCCycU/+sy5TA8XH +/OWJmnwD44QK0deOKBOa94YlWXqa9tbCwWJVfiGpHeMfbsdqCo6Cc8w9aTM7yWtDjvs FfhkQ8CDGstjAJnYqr69+noMFr/FW1By9FRuhR69jN30I72cE7YKKf2DzAiN2Kc2BxZa rNri54tR7iDR/0IRdoSiKGGHwMsjgjZr9plYdHZErOUzS7BuieTCk8FxdJgYU27REpiu vC2g== 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=AOS1RPD3u8TwBcbN7lQkUbqEyQ5lUlBIgtzl/5BvCt8=; b=B57CF8SDm0vqY30HitDB/2YUPF9Zjm4e8HOD2c2j3zVBzP4aeJq/55L6QpjQ/3+zKu jv7Kg8ERREzPyho5ApWylSEgd78Fr5uYhQ8qmaPDgCPLnFgS0ITjlN5cTPAJaK2A+LFm AShx/bQhguxJ13Vn0IMcyYehELZH9/sExezX+gV27QdfIzTsd90/6FjGSmEJGQA2hmmY EYRwV8I9MSklRKNTLBmPaQDBYRAuiyB5v2H2ypMln32J514KazMuqibIq8rSVqfxGB3j binYNwqeX+66TXRJo7bY4DLxUCd/SIt122wSdhVhoAcQKOjN24wOyB+ArtaXpHphXuw5 w4cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ENgVronG; 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 bm12-20020a170906c04c00b0073150f3dbbfsi10526656ejb.950.2022.09.06.15.01.53; Tue, 06 Sep 2022 15:02:20 -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=ENgVronG; 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 S229993AbiIFVyu (ORCPT + 99 others); Tue, 6 Sep 2022 17:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiIFVyq (ORCPT ); Tue, 6 Sep 2022 17:54:46 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CFC02496A for ; Tue, 6 Sep 2022 14:54:41 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id z8so16958305edb.6 for ; Tue, 06 Sep 2022 14:54:41 -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=AOS1RPD3u8TwBcbN7lQkUbqEyQ5lUlBIgtzl/5BvCt8=; b=ENgVronGcCwSedNCwVslHZ8WLV0fwSNVko2wg/BW5swdnQna7TzxSRjoo7j0ZLuA/K nJvV/gEJUHakeQVDqgQM5QGftcslhxhx5LF8q0jc6kVMCBBjj1sFV4ATUgaePi9TImlB jgMA+liOyGEuXf5EHPq+x7dKhULnvo9mGQwK8= 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=AOS1RPD3u8TwBcbN7lQkUbqEyQ5lUlBIgtzl/5BvCt8=; b=Jh7ERpcxG1iUSDDiXP2kPdneTYCer2+dKZM4TZpzZ00XMd+di34I9XyBBEYDpGZ+5+ JEiQYTTjkAZPvdTLTLyaYvu0WzAnehje1FAcnPWUQGiMjmMVlXFyzN6Xl+IaCVHTuZu3 UNqx1lnMSFmiJspfMZ6xiRRQyYFANajo7lJFxgt5RHw3t85LV7LcHqWpSDC8Jd+jscx6 MOQkZ6zz5I2Y/9fCGxBBP+k22seW3pk37HQDKVo50RJeRVfmOb4+Iu7dgsJKvy4fVmfI nih+MFr+rnYicIQZ2lqej5PwmN3mwRlWf1V/k90JC66UhbQDdNR1J+pIAMXv3G7GGMW3 lSJQ== X-Gm-Message-State: ACgBeo2vA9xtnIoTrs77V2XZX//cgHjDW2gF4EXmF/MzCHF2+GHtCTPt 82+lqulCObRN+vE0bLx4h3HQe7tWmUdB4Sx2 X-Received: by 2002:a05:6402:b85:b0:44e:dad7:3e24 with SMTP id cf5-20020a0564020b8500b0044edad73e24mr570429edb.264.1662501280319; Tue, 06 Sep 2022 14:54:40 -0700 (PDT) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com. [209.85.221.50]) by smtp.gmail.com with ESMTPSA id r14-20020aa7c14e000000b0044e7adbe0c5sm5104986edp.87.2022.09.06.14.54.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Sep 2022 14:54:38 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id bp20so16945939wrb.9 for ; Tue, 06 Sep 2022 14:54:37 -0700 (PDT) X-Received: by 2002:a5d:4d0c:0:b0:228:cd9f:5a4c with SMTP id z12-20020a5d4d0c000000b00228cd9f5a4cmr278070wrt.138.1662501277455; Tue, 06 Sep 2022 14:54:37 -0700 (PDT) MIME-Version: 1.0 References: <20220906201959.69920-1-ahalaney@redhat.com> In-Reply-To: <20220906201959.69920-1-ahalaney@redhat.com> From: Doug Anderson Date: Tue, 6 Sep 2022 14:54:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies To: Andrew Halaney Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-arm-msm , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Johan Hovold 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=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 Hi, On Tue, Sep 6, 2022 at 1:20 PM 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 > --- > > 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! > > Thanks, > Andrew > > .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Douglas Anderson