From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.241]) by ozlabs.org (Postfix) with ESMTP id 98A90DF71B for ; Fri, 6 Jun 2008 05:14:02 +1000 (EST) Received: by ag-out-0708.google.com with SMTP id 8so2598444agc.0 for ; Thu, 05 Jun 2008 12:14:01 -0700 (PDT) Message-ID: Date: Thu, 5 Jun 2008 13:14:00 -0600 From: "Grant Likely" Sender: glikely@secretlab.ca To: "Josh Boyer" Subject: Re: "cell-index" vs. "index" vs. no index in I2C device nodes In-Reply-To: <20080605135625.562d1dbe@zod.rchland.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <200806041706.21557.sr@denx.de> <48480987.1070701@freescale.com> <484810A3.5070301@freescale.com> <20080605112122.0381a338@zod.rchland.ibm.com> <48481373.8010706@freescale.com> <20080605132735.3433f2af@zod.rchland.ibm.com> <20080605135625.562d1dbe@zod.rchland.ibm.com> Cc: Scott Wood , linuxppc-dev@ozlabs.org, Stefan Roese , Timur Tabi List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jun 5, 2008 at 12:56 PM, Josh Boyer wrote: > On Thu, 5 Jun 2008 12:46:39 -0600 > "Grant Likely" wrote: > >> In Timur's case, it is absolutely appropriate to use cell-index and/or >> a phandle to make sure it gets the correct DMA registers (which is >> what cell-index is intended to solve). It is not appropriate to >> depend on that same number to also be the logical i2c bus number. > > Hence "index" would be a better fit for the latter then, yes? > No; use an alias in the aliases node. That is what aliases is designed for. Something like 'index' is a reinvention of the wheel. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.