From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) (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 77074DDF3C for ; Wed, 25 Apr 2007 12:11:32 +1000 (EST) In-Reply-To: <17966.45645.902486.793443@cargo.ozlabs.ibm.com> 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> <06c51eb59847d80d9225cd6454f1957e@kernel.crashing.org> <17966.45645.902486.793443@cargo.ozlabs.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <21814cd2b9f526c6a1d09720e875bd81@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [PATCH 3/6] Consolidate of_find_property Date: Wed, 25 Apr 2007 04:10:40 +0200 To: Paul Mackerras Cc: ppc-dev , "David S. Miller" , Stephen Rothwell List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> Property names aren't supposed to contain uppercase >> characters. > > Somebody forgot to tell Apple: Yes I know. Sigh. >> I can swing both ways on which of strcmp() >> or strcasecmp() is better, but there seems no reason >> to do this differently on each platform. > > The question is, what ppc drivers would break if we used strcmp > instead of strcasecmp? I have a dim memory that some Apple machines > had "ata" and others had "ATA" for the hard disk, for instance. Hrm I don't remember that one, but yeah something similar is bound to prop up. The question is, should we use strcasecmp(), or adjust those drivers to probe for the upper case version in addition to the lower case version? That option at least has the advantage that you can document the workaround right where the actual problem is met :-) Segher