From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760711AbZE0Uyy (ORCPT ); Wed, 27 May 2009 16:54:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757776AbZE0Uyb (ORCPT ); Wed, 27 May 2009 16:54:31 -0400 Received: from mail-gx0-f166.google.com ([209.85.217.166]:61222 "EHLO mail-gx0-f166.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbZE0Uya convert rfc822-to-8bit (ORCPT ); Wed, 27 May 2009 16:54:30 -0400 MIME-Version: 1.0 In-Reply-To: <20090527201951.GF30039@game.jcrosoft.org> 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> From: Grant Likely Date: Wed, 27 May 2009 14:54:10 -0600 Message-ID: Subject: Re: [RFC] [PATCH] Device Tree on ARM platform To: Jean-Christophe PLAGNIOL-VILLARD Cc: Russell King - ARM Linux , devicetree-discuss , linux-kernel@vger.kernel.org, Timur Tabi , Jon Smirl , Scott Wood , Janboe Ye , linux-arm-kernel@lists.arm.linux.org.uk Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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.  This 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.