Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756255AbYFKJFC (ORCPT ); Wed, 11 Jun 2008 05:05:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753345AbYFKJEw (ORCPT ); Wed, 11 Jun 2008 05:04:52 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:47658 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228AbYFKJEv (ORCPT ); Wed, 11 Jun 2008 05:04:51 -0400 Date: Wed, 11 Jun 2008 10:00:16 +0100 From: Russell King - ARM Linux To: Jean Delvare Cc: David Brownell , Ryan Mallon , Uli Luckas , i2c@lm-sensors.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH, RFC] Earlier I2C initialization Message-ID: <20080611090016.GA5338@flint.arm.linux.org.uk> References: <200806091541.43899.u.luckas@road.de> <484DA046.4010804@bluewatersys.com> <20080610085708.12c2d2a2@hyperion.delvare> <200806101355.07792.david-b@pacbell.net> <20080611101130.1a667abe@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080611101130.1a667abe@hyperion.delvare> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 31 On Wed, Jun 11, 2008 at 10:11:30AM +0200, Jean Delvare wrote: > Hi David, > > On Tue, 10 Jun 2008 13:55:07 -0700, David Brownell wrote: > > > Why don't you simply initialize the drivers in question with > > > subsys_initcall()? That's what i2c-pnx, i2c-omap, i2c-davinci and > > > tps65010 are doing at the moment. > > > > If they happen to sit outside the I2C tree and *before* it in > > link order, things will misbehave. > > Well, i2c system bus drivers shouldn't sit outside of the I2C tree, so > that's not a problem. If you start accepting that drivers live at > random places in the source tree, then there's simply no way to get > things right. That's simply not a realistic view. As I've already pointed out, framebuffer devices have I2C busses for reading the DDC information from monitors. These I2C bus drivers live in drivers/video. Video grabbers have I2C busses for controlling, eg, tuners and video decoders. These live in drivers/media. If I follow your argument, would you like cyber2000fb.c to be moved entirely from drivers/video into drivers/i2c/busses because it contains an i2c bus driver? Clearly not. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/