Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755702AbeAHGgk (ORCPT + 1 other); Mon, 8 Jan 2018 01:36:40 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:40944 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755652AbeAHGgi (ORCPT ); Mon, 8 Jan 2018 01:36:38 -0500 X-Google-Smtp-Source: ACJfBosJDYuhaPb34r9uQ/RAmpRju6FrRH10JsUrIpn2NKT5kjFR2dfcmEv+Fw95FG+knLELZfTLuLfYCrO8eFtFwU0= MIME-Version: 1.0 In-Reply-To: <20180105191837.GI9076@sirena.org.uk> References: <1515050568-23876-1-git-send-email-zhang.chunyan@linaro.org> <1515050568-23876-2-git-send-email-zhang.chunyan@linaro.org> <20180105185328.zmt33idv2cqled62@rob-hp-laptop> <20180105191837.GI9076@sirena.org.uk> From: Chunyan Zhang Date: Mon, 8 Jan 2018 14:36:36 +0800 Message-ID: Subject: Re: [PATCH V2 1/5] bindings: regulator: added support for suspend states To: Mark Brown Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Chunyan Zhang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 6 January 2018 at 03:18, Mark Brown wrote: > On Fri, Jan 05, 2018 at 12:53:28PM -0600, Rob Herring wrote: >> On Thu, Jan 04, 2018 at 03:22:44PM +0800, Chunyan Zhang wrote: > >> > + - regulator-suspend-microvolt: the default voltage which regulator >> > + would be set in suspend. The voltage for suspend also can be >> > + adjusted among {regulator-suspend-min-microvolt, >> > + regulator-suspend-max-microvolt} by calling >> > + regulator_set_suspend_voltage(). This property is not deprecated, > >> You mean "is deprecated", right? Ah, right, will correct this. > > I suspect "is now" but yeah. > >> > + - regulator-changeable-in-suspend: whether the default voltage and >> > + the regulator on/off in suspend can be changed in runtime. > >> Is this not implied by having the constraints? Or the driver should know >> this. The simply means you have some 2nd bank of registers for settings >> while in suspend mode, right? > > No, it means that the software has permission to use those changes to > those registers - we only want to be changing things if the user has > permission to change them since some systems will have specific > constraints, we don't know if it's safe without being explicitly told. > You're right that we could infer this from a range being provided > though, let's do that. Ok, so we don't need this property IIUC, and instead we just need to check if the regulator-suspend-min-microvolt and regulator-suspend-max-microvolt are set to the same value, right? Thanks, Chunyan