From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <48478B1C.9040300@grandegger.com> Date: Thu, 05 Jun 2008 08:43:40 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 To: Kumar Gala Subject: Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules References: <1212130188-28835-1-git-send-email-wg@grandegger.com> <1212130188-28835-2-git-send-email-wg@grandegger.com> <20080602020352.GB19393@yookeroo.seuss> <479BA7CE-CD12-4935-87EB-E69025D408E6@kernel.crashing.org> <4845181E.8040603@grandegger.com> <07AEED44-7DEB-46C1-B028-3EFA274CEB11@kernel.crashing.org> <20080603223905.GA22982@yookeroo.seuss> <484663DB.5000905@grandegger.com> <02EC7209-F395-4C01-A445-E111E6E54A25@kernel.crashing.org> In-Reply-To: <02EC7209-F395-4C01-A445-E111E6E54A25@kernel.crashing.org> Content-Type: text/plain; charset=ISO-8859-1 Cc: Linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala wrote: > > On Jun 4, 2008, at 4:43 AM, Wolfgang Grandegger wrote: > >> David Gibson wrote: >>> On Tue, Jun 03, 2008 at 09:33:12AM -0500, Kumar Gala wrote: >>>> On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote: >>>>> Kumar Gala wrote: >>>>>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote: >>>>>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote: >>> [snip] >>>>>>> You have a whole lot of 'cell-index' properties through both these >>>>>>> trees, and they all look wrong. cell-index is a hack, which >>>>>>> should be >>>>>>> avoided wherever practical - it should only be used when the index >>>>>>> is >>>>>>> used to offset into some global register block, never simply to >>>>>>> differentiate (use reg for that) or name the devices (use aliases >>>>>>> for >>>>>>> that). >>>>>> this is why FSL device tree's have cell-index. We have global >>>>>> control >>>>>> registers that need to know such things. >>>>> Should I remove them or not? OF is still a mystery for me :-(. >>>> Don't remove them. >>> >>> Yes, they're ok, given this usage. >> >> I'm puzzled. Could someone point me to some real code where cell-index >> is used as a pointer into some global data. Sorry for my ignorance. > > http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057254.html Yep, I saw that it's used for I2C (and SPI). But "cell-index" is also defined for network, serial and PCI nodes, which are also assigned via aliases. Wolfgang.