Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3761812imm; Thu, 17 May 2018 14:22:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoO+s/lFSh1+c1Kdr4Fj152A9v4MuAM7/7SmU1WDz0F7QsBVmVXzR/wLB/8smyfS65aEP29 X-Received: by 2002:a63:2a89:: with SMTP id q131-v6mr5186728pgq.379.1526592134600; Thu, 17 May 2018 14:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526592134; cv=none; d=google.com; s=arc-20160816; b=ZeaeTnIF0wzv+vhrJoGURMkQEjpMAyi6xMKPcSovWnepEwqdxNZdJrvTmbeXM3Y4Wt RTUp7FnGkqayUN/SsTGtudr7YypL+n6oALwgfweaF8Gavev9L6MWLtOeazAvenWlzB6t v9GGE4mgcr8XtcFylqEechxMo93fEVb2i3pvIifoD1NuOQnEuXbX2vkHCxbpquNwZski G1T1OfODFLEZX4Vu2kiImFqWBx/+PVqif5JY918LvYutRxhn9NxJZJJzpS70Ko2fvdVJ bFlrdOTQFe7Aqq/8aew+RgaCLThtdYAcaB2qw2Yt1brci3ZAUDMuoifV/rvl580IcH3X JDtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=EIwENwCL5c3u+DZZDxEUWEkuMK2ZrFUOII9NKJTj1Es=; b=roUKGwQ/ITTPJxNnxlKjW/8PheAgf0K4/dpVhfuCnv7lXB5rezMyiE3EMC7WWClEZH GAsS9Rq7cU7h+qkbLJhnIQp+yPdZR2C54Vhzg1EoP8v8z9GSA6CxWtEgEtylKDd6fEUR NPH5nMF9VdyQDAmhfcheppQsrss6/ujT4VP4kdxI5rOshL2LzgIaf6Y5V0knt4Qjn1tp hwhHTAvX3Qi6nNMYF9bANrixEpFJq5XhuOrPqSPqjcZcH/lYVkz+wixs0f2usWNRpkYx jOwK//kxhwDTP5+rfqBt4stEUPg5oolS5w4w9RkpDU7W5KG4uBI9Xg8qtuQsCUP6EHNC EGBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=j6/Arm3t; dkim=fail header.i=@chromium.org header.s=google header.b=k9RhqaaY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8-v6si4492004pgp.628.2018.05.17.14.21.58; Thu, 17 May 2018 14:22:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=j6/Arm3t; dkim=fail header.i=@chromium.org header.s=google header.b=k9RhqaaY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751892AbeEQVVs (ORCPT + 99 others); Thu, 17 May 2018 17:21:48 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:40045 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbeEQVVq (ORCPT ); Thu, 17 May 2018 17:21:46 -0400 Received: by mail-vk0-f67.google.com with SMTP id e67-v6so3598288vke.7 for ; Thu, 17 May 2018 14:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EIwENwCL5c3u+DZZDxEUWEkuMK2ZrFUOII9NKJTj1Es=; b=j6/Arm3tpt3z2E0AC1Z8vztY6eTLgNpUYR/LVNjCL54A1oiRkwE6EmDSlNfWvcE9Vc BQhoxaq3CR+L4Fb6+IqsatJ8GOVygjzWkiV1NGMd8IF10Fx920U5jgvtYJj9r1qKXQDy mVeLt2dhWPpJ1biJINKWi9SaQYvR+cIA6GAh2nNPfaGLvljeVxNE0TWV44/JmpMEjBhb e+kPJh27yKiSGODgrW/jVdK9BHuYjbv0wwZMRkaW9w+logOoxkv35eb/UONDEx0unKrz Wsd5+2a9xtnRWu1+ohmJ3cbzxKkiC1APu/ScNPq0a417x8Sr0DC1I5bUJ/BeaptXnrW4 pgYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EIwENwCL5c3u+DZZDxEUWEkuMK2ZrFUOII9NKJTj1Es=; b=k9RhqaaYN7zW/Y8hBzHRPn6TXxdqod2b3kEN+hIDXZQrq1RZLi7DKrxyiked22g4DU +/1U+PKrORcwZ1PZeKEn5GbE23IMuGO4+/nDeZH9DcmQm+xXZqh9KyXXF2C4rpvKCKMy lZq5DHLkmNF2krE/M95Zyg21MTrrnBdiNyBSc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=EIwENwCL5c3u+DZZDxEUWEkuMK2ZrFUOII9NKJTj1Es=; b=F3ju7/8OWL7wOH2wGNcSaQIEqGlCxK/jN1Tl5Hg7sxpVMNvBMy8HaAS4CGaoGppynB NWbZKDnUwEgD8CRnIFNR8FLATHjCvpsP/blynfTMlP2c71YpBfQkko2pfb+XqP9yhmu3 ZgHJMhEvsN+qShpzS1qQyys8WQncEEn2Fg2Eb1Ort5fNDFkScIY8zI+YUnSIYlOoWgYt esDcpwJh/qFnfIQmZNqKRxNzdZ8CpxBE+grMd4gvlZDRS21yf3bOcsXNz2PAqA/1pElh ztSFu4bWeqJyLQU6Q6s8nrvXF1BHiEd0Y/a2Vu+c6R1FZ9yHQMrR2AL1BJxZQUEKm4b/ QM8w== X-Gm-Message-State: ALKqPwfMaLLOMmDeczqJ2+i1rPQ30zgTjt418AxiBgzEJbQSNQGPLNVB vKF8u0JO9nhEf4jfDNI2uwp9sM46+mr+GqCnGlL6BQ== X-Received: by 2002:a1f:c0c1:: with SMTP id q184-v6mr5460907vkf.144.1526592104807; Thu, 17 May 2018 14:21:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.48.82 with HTTP; Thu, 17 May 2018 14:21:42 -0700 (PDT) In-Reply-To: References: From: Doug Anderson Date: Thu, 17 May 2018 14:21:42 -0700 X-Google-Sender-Auth: QcWjHovs_QRHoPoVDRMjHUHhxlE Message-ID: Subject: Re: [PATCH 1/2] regulator: of: add property for allowed modes specification To: David Collins Cc: Mark Brown , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, May 11, 2018 at 6:46 PM, David Collins wrote: > Add a common device tree property for regulator nodes to support > the specification of allowed operating modes. > > Signed-off-by: David Collins > --- > Documentation/devicetree/bindings/regulator/regulator.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt > index 2babe15b..c627aa0 100644 > --- a/Documentation/devicetree/bindings/regulator/regulator.txt > +++ b/Documentation/devicetree/bindings/regulator/regulator.txt > @@ -59,6 +59,11 @@ Optional properties: > - regulator-initial-mode: initial operating mode. The set of possible operating > modes depends on the capabilities of every hardware so each device binding > documentation explains which values the regulator supports. > +- regulator-allowed-modes: list of operating modes that software is allowed to > + configure for the regulator at run-time. Elements may be specified in any > + order. The set of possible operating modes depends on the capabilities of > + every hardware so each device binding document explains which values the > + regulator supports. Looks sane to me. It might be interesting to be explicit about what happens if "regulator-allowed-modes" doesn't include the mode that was listed as "regulator-initial-mode". Does that mean that there's no way to get back to "regulator-initial-mode" after it's been changed once, or is it an error to not include the initial mode in the set of allowed modes? I'm not 100% sure if going to such detail is necessary though. Thus, feel free to add: Reviewed-by: Douglas Anderson