From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: [PATCH] drivers: i2c-gpio: move initialization code subsys_initcall() Date: Thu, 1 Apr 2010 16:30:18 +0200 Message-ID: <20100401163018.5494f19b@hyperion.delvare> References: <1270129399-30365-1-git-send-email-m.szyprowski@samsung.com> <20100401134917.GF24265@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100401134917.GF24265-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Marek Szyprowski Cc: Wolfram Sang , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ben Dooks , kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, Mark Brown List-Id: linux-i2c@vger.kernel.org On Thu, 1 Apr 2010 15:49:18 +0200, Wolfram Sang wrote: > On Thu, Apr 01, 2010 at 03:43:19PM +0200, Marek Szyprowski wrote: > > GPIO driven I2C bus can be used for controlling the PMIC chip. The example > > of such configuration is Samsung Aquila board. > > > > This patch moves initialization code subsys_initcall() to ensure that the i2c > > bus is available early so the regulators can be quicly probed and available for > > Minor: quickly > > > other devices on their probe() call. > > > > Such solution has been proposed by Mark Brown to fix the problem of the > > regulators not beeing available on the peripheral device probe(): > > http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011971.html > > > > CC: Mark Brown > > Reviewed-by: Kyungmin Park > > Signed-off-by: Marek Szyprowski > > Yup, a number of drivers do this: > > Acked-by: Wolfram Sang Applied, thanks. Is it desirable to have this patch in 2.6.34, or is 2.6.35 enough? -- Jean Delvare