Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964930AbcDNQVn (ORCPT ); Thu, 14 Apr 2016 12:21:43 -0400 Received: from down.free-electrons.com ([37.187.137.238]:56033 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964793AbcDNQVl (ORCPT ); Thu, 14 Apr 2016 12:21:41 -0400 Date: Thu, 14 Apr 2016 18:21:37 +0200 From: Boris Brezillon To: Thierry Reding Cc: Mark Brown , Liam Girdwood , linux-kernel@vger.kernel.org, Caesar Wang , Heiko =?UTF-8?B?U3TDvGJuZXI=?= , Stephen Barber , Douglas Anderson , Brian Norris Subject: Re: [PATCH] regulator: reorder initialization steps in regulator_register() Message-ID: <20160414182137.3257fa82@bbrezillon> In-Reply-To: <20160413064140.GJ14664@sirena.org.uk> References: <1460457060-3946-1-git-send-email-boris.brezillon@free-electrons.com> <20160413064140.GJ14664@sirena.org.uk> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1753 Lines: 52 Hi Thierry, On Wed, 13 Apr 2016 07:41:40 +0100 Mark Brown wrote: > On Tue, Apr 12, 2016 at 12:31:00PM +0200, Boris Brezillon wrote: > > device_register() is calling ->get_voltage() as part of is sysfs attribute > > initialization process, and this functions might need to know the regulator > > constraints to return a valid value. I realize you were not CCed for this patch, but if we want all the pwm-atomic support changes (including the pwm-regulator ones) to go through your tree, you'll have to pull the following branch before applying "regulator: pwm: retrieve correct voltage". > > I've pushed this as a signed tag: > > The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: > > Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-sysfs-init-order > > for you to fetch changes up to 469b640e4f4a28bdd50f0ac1d2b310907afb464c: > > regulator: reorder initialization steps in regulator_register() (2016-04-13 07:33:44 +0100) > > ---------------------------------------------------------------- > regulator: Pull the sysfs init after constraint setup > > The sysfs attributes can indirectly use information from the constraints > so can trigger warnings with some systems. > > ---------------------------------------------------------------- > Boris Brezillon (1): > regulator: reorder initialization steps in regulator_register() > > drivers/regulator/core.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) Thanks, Boris -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com