From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [RFC] [PATCH] Device Tree on ARM platform Date: Wed, 27 May 2009 14:54:10 -0600 Message-ID: References: <87vdnm8sec.fsf@macbook.be.48ers.dk> <4A1D6901.2090508@freescale.com> <20090527175609.GB31861@flint.arm.linux.org.uk> <4A1D8FBA.6040802@freescale.com> <9e4733910905271213k7f4b93e7i7e6f2af24d85f@mail.gmail.com> <20090527192116.GA31110@n2100.arm.linux.org.uk> <20090527193927.GD30039@game.jcrosoft.org> <20090527201951.GF30039@game.jcrosoft.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090527201951.GF30039-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@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: Jean-Christophe PLAGNIOL-VILLARD Cc: devicetree-discuss , Russell King - ARM Linux , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org, Jon Smirl , Scott Wood , Janboe Ye , Timur Tabi List-Id: devicetree@vger.kernel.org On Wed, May 27, 2009 at 2:19 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: >> One option that has been suggested (more than once) is to make the >> adapter code an of_platform_driver which translates the device tree >> data and then registers the appropriate platform_devices. =A0This neatly >> solves the problem, but I don't like the overhead involved in >> registering 2 struct devices with the kernel for every device node in >> the device tree. > but simplify the dev and maintaining is also an important goal. > > Have to duplicated ressource handling via ifdef in every drivers is also = an > overhead which need to be avoided agreed. I don't have a best of both worlds answer here. g. -- = Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.