Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753988Ab2JKFKk (ORCPT ); Thu, 11 Oct 2012 01:10:40 -0400 Received: from ozlabs.org ([203.10.76.45]:51340 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753620Ab2JKFKg (ORCPT ); Thu, 11 Oct 2012 01:10:36 -0400 Date: Thu, 11 Oct 2012 15:11:38 +1000 From: David Gibson To: Mitch Bradley Cc: Rob Herring , Michal Marek , Stephen Warren , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Scott Wood Subject: Re: dtc: import latest upstream dtc Message-ID: <20121011051138.GB25270@truffula.fritz.box> References: <1349827466.26044.16@snotra> <20121010072401.GA28467@truffula.fritz.box> <50759152.9050407@wwwdotorg.org> <5075954B.8030008@gmail.com> <20121010231623.GG28467@truffula.fritz.box> <50762409.5060105@firmworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50762409.5060105@firmworks.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3023 Lines: 58 On Wed, Oct 10, 2012 at 03:42:33PM -1000, Mitch Bradley wrote: > On 10/10/2012 1:16 PM, David Gibson wrote: > > On Wed, Oct 10, 2012 at 10:33:31AM -0500, Rob Herring wrote: > >> On 10/10/2012 10:16 AM, Stephen Warren wrote: > >>> On 10/10/2012 01:24 AM, David Gibson wrote: > >>>> On Tue, Oct 09, 2012 at 10:43:50PM -0600, Warner Losh wrote: > >>>>> On Oct 9, 2012, at 6:04 PM, Scott Wood wrote: > > [snip] > >>> That's probably a reasonable idea, although I imagined that people would > >>> actually split out the portions of any header file they wanted to use > >>> with dtc, so that any headers included by *.dts would only include > >>> #defines. Those headers could be used by both dtc and other .h files (or > >>> .c files). > >> > >> Used by what other files? kernel files? We ultimately want to split out > >> dts files from the kernel, so whatever we add needs to be self > >> contained. I don't see this as a huge issue though because the whole > >> point of the DT data is to move that information out of the kernel. If > >> it is needed in both places, then something is wrong. > > > > People get very hung up on this idea of having the DT move device > > information out of the kernel, but that was never really the > > motivation behind it. Or at least, not the only or foremost > > motivation. > > > > The DT provides a consistent, flexible way of describing device > > information. That allows the core runtime the kernel to operate the > > same way, regardless of how the DT information was obtained. The DT > > could come from firmware, but it could also come from an intermediate > > bootloader or from early kernel code. All are perfectly acceptable > > options depending on the constraints of the platform. > > > > The idea of firmware supplying the DT is much touted, but while it's a > > theoretically nice idea, I think it's frequently a bad idea for > > practical reasons. Those being, in essence that a) firmware usually > > sucks, b) it's usually harder (or at least no easier) to replace > > firmware with a fixed version than the kernel/bootwrapper and c) > > firmware usually *really* sucks. > > Gee, it sounds like you want firmware to suck. Beating on the "firmware > sucks" drum is sort of a self-fulfilling prophecy, discouraging talented > programmers from doing firmware. Who would want to work on something > that "everyone knows sucks"? At this point it's already fulfilled. Unfortunately, it really doesn't matter how many more nice firmwares appear, once you have to support the shitty ones - which we already do - the damage is done. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson -- 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/