From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 2A3E1DDEE0 for ; Wed, 25 Apr 2007 10:43:59 +1000 (EST) In-Reply-To: <1177459235.14873.155.camel@localhost.localdomain> References: <20070403105217.7b9fea08.sfr@canb.auug.org.au> <20070403223000.5d44b2f1.sfr@canb.auug.org.au> <20070403223136.6ecdabbd.sfr@canb.auug.org.au> <20070403223257.cb8c4d15.sfr@canb.auug.org.au> <20070403223535.dd6731d6.sfr@canb.auug.org.au> <20070403223738.03386a13.sfr@canb.auug.org.au> <20070403223914.35bf04e1.sfr@canb.auug.org.au> <20070403224039.913af749.sfr@canb.auug.org.au> <20070403224205.807cffe0.sfr@canb.auug.org.au> <20070403224340.5533abc9.sfr@canb.auug.org.au> <20070403224505.5d5a1495.sfr@canb.auug.org.au> <20070403224610.b61c7377.sfr@canb.auug.org.au> <20070403224937.f6a07e56.sfr@canb.auug.org.au> <20070403225059.e735b5e4.sfr@canb.auug.org.au> <20070403225222.88e92221.sfr@canb.auug.org.au> <20070403230505.f96ea210.sfr@canb.auug.org.au> <20070403232406.ab9a3c86.sfr@canb.auug.org.au> <20070412141905.6f30efd3.sfr@canb.auug.org.au> <20070412153424.bf3957f4.sfr@canb.auug.org.au> <20070424223245.78f4fdfb.sfr@canb.auug.org.au> <20070424223930.1dab0e28.sfr@canb.auug .org.au> <1177459235.14873.155.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH 3/6] Consolidate of_find_property Date: Wed, 25 Apr 2007 02:43:44 +0200 To: Benjamin Herrenschmidt Cc: ppc-dev , paulus@samba.org, "David S. Miller" , Stephen Rothwell List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> The only change here is that a readlock is taken while the property >> list >> is being traversed on Sparc where it was not taken previously. >> >> Also, Sparc uses strcasecmp to compare property names while PowerPC >> uses strcmp. > > Ok, so that's the opposite as the previous one... property names are > supposed to be case sensitive though, no ? The OF standard doesn't allow upper case in property names at all. > I don't think we would take much risk on ppc by > using strncasecmp but it shouldn't be necessary... There are some examples where upper case is actually used in property names, unfortunately. These can be solved by renaming/copying those properties to all lower case in a bootwrapper, or by strcmp() to the "cased" string, or by strcasecmp(). I for one don't like either option, you figure it out ;-) Segher