From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [RFC] [PATCH] Device Tree on ARM platform Date: Wed, 27 May 2009 22:31:15 +0200 Message-ID: <20090527203115.GB16219@game.jcrosoft.org> References: <9e4733910905271213k7f4b93e7i7e6f2af24d85f@mail.gmail.com> <20090527192116.GA31110@n2100.arm.linux.org.uk> <20090527193927.GD30039@game.jcrosoft.org> <20090527.132827.65331718.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090527.132827.65331718.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: David Miller Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, timur-KZfg59tc24xl57MIdRCFDg@public.gmane.org, jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, scottwood-KZfg59tc24xl57MIdRCFDg@public.gmane.org, yuan-bo.ye-3WKxDLwmzFNWk0Htik3J/w@public.gmane.org, linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org List-Id: devicetree@vger.kernel.org On 13:28 Wed 27 May , David Miller wrote: > From: Jean-Christophe PLAGNIOL-VILLARD > Date: Wed, 27 May 2009 21:39:27 +0200 > > > when you have to support the same driver for non OF and OF platform it's > > really a pain in the ass > > We could embed the platform_device object into the of_platform_device > structure, it's just an implementation issue. > > But more to the point, I can tell you that anything platform_device > does can be implemented in terms of of_platform_device but the > opposite is not true. This is one of the problem I face not so long ago when I want to the boot count limit functionnality which is only availlble for of platform That's why I think having a simplest way to have driver availlable on the twice platform is important. It will be a win-win at the end Best Regards, J.