Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4397927rwl; Wed, 28 Dec 2022 03:40:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvaV5Gc2JPbCnTfKfCzg15p38nRXVxrrN0Io/Ddet4B/eXa5GgyrVdkCyYNxOp0d0PWd1PE X-Received: by 2002:a05:6402:1caa:b0:46c:2c94:d30a with SMTP id cz10-20020a0564021caa00b0046c2c94d30amr20113774edb.31.1672227619802; Wed, 28 Dec 2022 03:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672227619; cv=none; d=google.com; s=arc-20160816; b=uq6krRQSIQLIp1+vydbnBElWOqY863FHe7sWCAEIYlbOKXo6cRKOWOqrE7BC9VK+oO Xmo9tezwBRzp1NHw9IQCbclqdm8X/DIjZB9n2rEGyVHCKEb3r24jwcMO8sPz6wVn19yZ d2fYKaAWySAuyLzw165XvWNOFuVnGYSq8+6dP2TEY+ayVrDlA/6kcof3lwvrUij9EUeG AnbJ5kB6dtfwQaLwjQNrgwrNa/MqyBlAwKWInHo4NdWKFAL8oLMCgp76cYh6yoXhr4Zw xuMhyOrKqXlV4jPO4n6Q+Ny7+DXY5+1+FO9cJNwKEJMNXC0+UBR1p/p13SNJGiGl6CWc NKLw== 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=GLA7ubm+v3rZ9bja7jMysN5GdKlxhgQBbiuUzNYMNtg=; b=nZAzZLFZveDQ781OKRC38gYHpPro4ANObnOhuZKhmGqnXUYcS2pJ1rfCfhHfeN5viY iXp3O+oSDxzHgAK7i86k/xtkXgby6iyaW8B9STP3IQi2XpykjpeH2WIcWLw0Ywt3UH8z OrbKUVujKFtHoGkvFcX5iehbSBalUcTF1fWKfaBncQNDzeDrWvuFFaCdfLkP4za4xasF R1XuAHXOf51U1/mnbvQn0I0E08w/Rb6ZYURMtYUWNb+lYSZz8VcxpUFmID2WSfsdMok3 xRtDr3zacq/DpK6XEPlPwhqMNIEaKbzaffL/dYx9ZJn++FDNUAtBlN4ysMXw7McgfemB Rejg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ik/sVIcZ"; 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 q8-20020a50cc88000000b0047039339346si13030241edi.550.2022.12.28.03.40.04; Wed, 28 Dec 2022 03:40:19 -0800 (PST) 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="ik/sVIcZ"; 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 S232660AbiL1K6t (ORCPT + 64 others); Wed, 28 Dec 2022 05:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiL1K6q (ORCPT ); Wed, 28 Dec 2022 05:58:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE1321A4; Wed, 28 Dec 2022 02:58:45 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5B05B6146B; Wed, 28 Dec 2022 10:58:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA36C433EF; Wed, 28 Dec 2022 10:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672225124; bh=T0C4xkF9Fh07C/j92Rbl0JH6oQ5sn/u8/fIOu7dNH9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ik/sVIcZOGwffEkYYPkdyX5AR0xgMAgixZGNT7rzznszonHRtBB1kt+w3jO5dHDAs x0WQ0zb+RnJLMsgHd80EbVX6aopWrnOKSQKj85qu0nBBUXK2LVzISgWD8bBcKowsvB 4u9VvwAU1bRuiJSRceMPMVbv8Z/A6T6ztD7j7RuHe4Ee8l1pXhyKkj9vLmLqwMIRWK z3RlnweiHie8Cgt2VSMKDDqcz/Bh39aeba/jNnKwWzWA9gJesLrBq86/h7fqo/cbL7 TJl0xglyKd2DpdalgAOztM89RAp28JZ0FwNXIFTO8OOG15E4pnf8P+9zrDUJl7CYpA ngnRLX5p7NEdw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pAU91-00064B-5M; Wed, 28 Dec 2022 11:58:47 +0100 Date: Wed, 28 Dec 2022 11:58:47 +0100 From: Johan Hovold To: Krzysztof Kozlowski Cc: Andrew Halaney , 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, Johan Hovold Subject: Re: [PATCH v3] regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies Message-ID: References: <20220907204924.173030-1-ahalaney@redhat.com> <14b0237d-6511-4a1f-3bda-e0e72b442a56@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14b0237d-6511-4a1f-3bda-e0e72b442a56@linaro.org> 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 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, Dec 28, 2022 at 11:37:06AM +0100, Krzysztof Kozlowski wrote: > On 07/09/2022 22:49, 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. > > > > In general this is true for any regulators that are setting modes > > instead of setting a load directly, for example RPMH regulators. A > > counter example would be RPM based regulators, which set a load > > change directly instead of a mode change. In the RPM case > > regulator-allow-set-load alone is sufficient to describe the regulator > > (the regulator can change its output current, here's the new load), > > but in the RPMH case what valid operating modes exist must also be > > stated to properly describe the regulator (the new load is this, what > > is the optimum mode for this regulator with that load, let's change to > > that mode now). > > > > 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 > > Andrew, > > This patch was merged therefore we started seeing such warnings. Any > plans to actually fix them? Didn't Doug already do that? https://lore.kernel.org/all/20220829164952.2672848-1-dianders@chromium.org/ Johan