Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762852AbYBWVYq (ORCPT ); Sat, 23 Feb 2008 16:24:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752139AbYBWVYj (ORCPT ); Sat, 23 Feb 2008 16:24:39 -0500 Received: from lixom.net ([66.141.50.11]:51256 "EHLO mail.lixom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbYBWVYi (ORCPT ); Sat, 23 Feb 2008 16:24:38 -0500 Date: Sat, 23 Feb 2008 15:28:23 -0600 From: Olof Johansson To: Jochen Friedrich Cc: Jean Delvare , linux-kernel@vger.kernel.org, linuxppc-dev list , i2c@lm-sensors.org, Scott Wood Subject: Re: [PATCHv4 2.6.25] i2c: adds support for i2c bus on Freescale CPM1/CPM2 controllers Message-ID: <20080223212823.GA22131@lixom.net> References: <47A1C4E9.4000003@scram.de> <20080221130520.12b01553@hyperion.delvare> <47BEAF00.50106@scram.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47BEAF00.50106@scram.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 30 On Fri, Feb 22, 2008 at 12:16:16PM +0100, Jochen Friedrich wrote: > Fortunately, I2c no longer uses numeric device IDs but names. So what are the alternatives? > > 1. modify the I2c subsystem to accept OF names additionally to I2c names (proposed by Jon smirl). Sounds like Jean isn't very excited about this idea.. > 2. record the I2c name in the dts tree, either as seperate tag (like linux,i2c-name="") > or as additional compatible entry (like compatible="...", "linux,"). I have to say no on this one. The device tree is not supposed to know about how linux uses devices, there are firmwares out there that don't use DTS for thier device trees, etc. > 3. use a glue layer with a translation map. In my opinion this is an OK solution since the same information has to be added somewhere already anyway -- eiither to the drivers or to this translation table. It should of course be an abstacted shared table, preferrably contained under the i2c source directories since several platforms and architectures might share them. -Olof -- 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/