Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965933AbcDMGls (ORCPT ); Wed, 13 Apr 2016 02:41:48 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:36776 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965900AbcDMGlq (ORCPT ); Wed, 13 Apr 2016 02:41:46 -0400 Date: Wed, 13 Apr 2016 07:41:40 +0100 From: Mark Brown To: Boris Brezillon Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Caesar Wang , Heiko =?iso-8859-1?Q?St=FCbner?= , Stephen Barber , Douglas Anderson , Brian Norris Message-ID: <20160413064140.GJ14664@sirena.org.uk> References: <1460457060-3946-1-git-send-email-boris.brezillon@free-electrons.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QnBU6tTI9sljzm9u" Content-Disposition: inline In-Reply-To: <1460457060-3946-1-git-send-email-boris.brezillon@free-electrons.com> X-Cookie: f u cn rd ths, itn tyg h myxbl cd. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] regulator: reorder initialization steps in regulator_register() X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1898 Lines: 53 --QnBU6tTI9sljzm9u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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'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(-) --QnBU6tTI9sljzm9u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXDeoiAAoJECTWi3JdVIfQ8XwH/3UwdWDZ+oLCR/2ahg7mMeGO CuZ/pwdMcF68vnBEBpYB+0LArMuvHJJFSv6X/q93Ju5xrq9G0UCHBYR1/Od8oxz5 9Bi6/NXRcsKizfTixaKMoj6plYQT2jeVnSp69+PwceFS+HnoL7CuXa87c8Z4TdMJ pt6YJc14JegkbaIrNCrn0uDkwPD+ZF165md+/ymncWck1DMjRVr96HuBCvvg5AI3 0s8pL2QBrrlRFsN/7qte4riRZUOGk+TD3WftpUAVqwYr8VjsOBAMKSKfk/dwdryF EkMVpGeUD8L+XhdvOAK3Ko0mHgW6SEggzYb8eH1YWplb9LC/Ed8OMr9MNcQ1CcY= =+oKH -----END PGP SIGNATURE----- --QnBU6tTI9sljzm9u--