Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756614AbZJGXsp (ORCPT ); Wed, 7 Oct 2009 19:48:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755748AbZJGXso (ORCPT ); Wed, 7 Oct 2009 19:48:44 -0400 Received: from va3ehsobe001.messaging.microsoft.com ([216.32.180.11]:44670 "EHLO VA3EHSOBE001.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755536AbZJGXsn convert rfc822-to-8bit (ORCPT ); Wed, 7 Oct 2009 19:48:43 -0400 X-SpamScore: -30 X-BigFish: VPS-30(zz542N1432R98dN9371Pzz1202hzzz2dh6bh61h) X-Spam-TCS-SCL: 0:0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Subject: RE: Xilinx SYSACE driver and 8-bit attachment Date: Wed, 7 Oct 2009 17:47:58 -0600 In-Reply-To: <1d3f23370910071644y5877cf9v879967340a463f19@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Xilinx SYSACE driver and 8-bit attachment Thread-Index: AcpHqCk7ZwQKz4r/QgeAPEy71XuEOgAACaUw References: <1d3f23370910070013u6307bc42hf7ab243b52d007df@mail.gmail.com> <1d3f23370910071644y5877cf9v879967340a463f19@mail.gmail.com> From: John Linn To: "John Williams" , CC: "Linux Kernel list" , "Michal Simek" , "David DeBonis" , "Stephen Neuendorffer" , "devicetree-discuss" X-OriginalArrivalTime: 07 Oct 2009 23:48:00.0320 (UTC) FILETIME=[9A5ACC00:01CA47A8] Message-ID: <940f74fd-51b8-4158-9f40-c9ffa9a27ccb@VA3EHSMHS013.ehs.local> X-Reverse-DNS: unknown-60-83.xilinx.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2893 Lines: 67 > -----Original Message----- > From: John Williams [mailto:john.williams@petalogix.com] > Sent: Wednesday, October 07, 2009 5:45 PM > To: grant.likely@secretlab.ca > Cc: Linux Kernel list; Michal Simek; John Linn; David DeBonis; Stephen Neuendorffer; devicetree- > discuss > Subject: Re: Xilinx SYSACE driver and 8-bit attachment > > On Wed, Oct 7, 2009 at 11:34 PM, Grant Likely wrote: > > [Added devicetree-discuss to cc: list] > > > > On Wed, Oct 7, 2009 at 1:13 AM, John Williams > > wrote: > >> Hi Grant (it's your driver :) and David D ( and your DTS generator :) > > [...] > >> if (of_find_property(op->node, "8-bit", NULL)) > > [...] > >> doesn't match the properties generated by Xilinx's device tree generator: > > [...] > >> ??????????????????????? xlnx,mem-width = <0x8>; > >> > >> So, the question is, which should change? > > > > Well, obviously its a device tree generator bug, the driver code is > > perfect. ?:-P > > How did I know you'd say that? :) > > > In all seriousness though, the '8-bit' property has been present for a > > while now and needs to be retained to not break existing users. ?It > > would be okay for the driver to be modified to *also* check for the > > xlnx,mem-width property, but the better solution is to modify the > > device tree generator. ?Plus, the '8-bit' property is the documented > > binding in Documentation/powerpc/dts-bindings/xilinx.txt > > I tend to agree - but I also tend think that putting funky, arbitrary > output strings in the DTS generator is also a bad idea. > > In this case, my vote is leaning towards adding a test for > "xlnx,mem-width = <..>" to the driver, in addition to the existing > "8-bit" tag to keep back compatability. > > How would you feel about that? > > In future, for new Xilinx drivers I think the default binding should > be inspired by what comes from the DTS generator automatically, with > out any special per-device hacks. This has a natural tendency towards > minimum pain I think. Agreed. This was special legacy is the only reason it warranted it. > > John > -- > John Williams, PhD, B.Eng, B.IT > PetaLogix - Linux Solutions for a Reconfigurable World > w: www.petalogix.com p: +61-7-30090663 f: +61-7-30090663 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- 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/