Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5293564rwb; Tue, 6 Sep 2022 23:53:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VZwMl4LBVv321GyuyPxv6n1lN0pWeG47708DKyiRPCofMX1OhNQQ1fa1lSIlv8CR40CRK X-Received: by 2002:a17:902:a5cc:b0:170:d1cf:ac83 with SMTP id t12-20020a170902a5cc00b00170d1cfac83mr2459423plq.14.1662533630108; Tue, 06 Sep 2022 23:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662533630; cv=none; d=google.com; s=arc-20160816; b=kEwy37CHMlH49YBqIuspu0LRLwW+NTlSTfHnq1J5ljRSZZcfDDxrIm3jc6MLiPTSoI RYniktQ9CadkpJotma9+vftcTHDaq2ItvQJNGss0XDZjdyTyjRpOIsIdirx4Vy7cr3dg CvHcF5f1R5S5/5bX0GidG8OksLxrRSxp+aC5kcORzsYIc4wh9kaa+br3uY9JEfTXWMZ3 SdRMMLHq3hXkpQpBski9GL3pEny5YIQypNQmgUxUTBO9AzAJFJ75Wz28YBhIQfUchj0n UPTnM5eSBWRbRnxmJBL5D+xiWgKLPPXtAXzfWfaFUjJdqzFdOzAftMdPkyyvcq0tMfr9 MNCw== 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=00c+WtHBo6AUulv21L7puA8f3Zl/qgyhVyh1r2ppZ4w=; b=taO4UAsbodQlL5m2DEF6rNBhRhS1L9LX24apd1DKE5RqX6NB6PSVT7zakqHCEOipfA 6YV2agUj8guJtD/eLsozU4o9Kztc0wkxABCoXboPmrM7YMbLdN6WgNARZyPFgFcATTBN nbq1xliQmQpAQpKqZikAgnI/bn6oNyuAsbJEuUd0ujhxM074HUjtYPmvBIMwTjVuUmES 8t+1JAZj9ZUuDw8aG3KivpRyULk7b9bq2uIp3LRzsboQB7e/THMBq3cBAa6K95fhvAD6 1sOMaqstBtIFUIl8hXBJ0m42hYIW+ezr58AiBa8Z6DH0nRbbsbYLbRyQAGeGvEt8aBwL dbsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dk+troH/"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j187-20020a638bc4000000b0041c080db81asi14812104pge.150.2022.09.06.23.53.38; Tue, 06 Sep 2022 23:53:50 -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=@kernel.org header.s=k20201202 header.b="Dk+troH/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229824AbiIGG2N (ORCPT + 99 others); Wed, 7 Sep 2022 02:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIGG2L (ORCPT ); Wed, 7 Sep 2022 02:28:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B24078C00E; Tue, 6 Sep 2022 23:28:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5E3CEB81B6E; Wed, 7 Sep 2022 06:28:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C147C433C1; Wed, 7 Sep 2022 06:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662532088; bh=KWq6t8sirh/Dx0hC8hVA1xMEpvcF9InY07/Sx6GZjVo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dk+troH/mm8ytfmLXVq5/BK3riMgMYefZY+iPzzRvWAiOMuH6Mnumq3C+YFVDi/CN buYa8yU5PV7Ucx4sYMd9eE1KA/s8CEVqxWB+3DH1OtBHXn5uI/DFbDI46pvIK32+DW sdVV4JussUV6VrdQgwLzO7mDSxuTh0pSW+O0VBUbfsgC7RU7rSd3QEKfiWc78bkdwE CvBG7ICYq9+eIqZf2S5LQjSNH0/fsw7SWyy3dAgEmjUXul3NIXS+Lo3eRGrr6qqX3y bChq43AknonEka1tGQ6Jvi5G+q2FokK9HmVVhDu6So/hrsXkKoJCTg6jw5QgmkhFzx TPFFo8m3oBuyg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oVoXj-00074e-B3; Wed, 07 Sep 2022 08:28:11 +0200 Date: Wed, 7 Sep 2022 08:28:11 +0200 From: Johan Hovold To: Andrew Halaney 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: References: <20220906201959.69920-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906201959.69920-1-ahalaney@redhat.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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