From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: [PATCH v2 REPOST] dtc: Add support for named integer constants Date: Wed, 11 Jan 2012 08:38:28 -0600 Message-ID: References: <1323720257-23847-1-git-send-email-swarren@nvidia.com> <74CDBE0F657A3D45AFBB94109FB122FF1751860874@HQMAIL01.nvidia.com> <74CDBE0F657A3D45AFBB94109FB122FF17761F17D5@HQMAIL01.nvidia.com> <74CDBE0F657A3D45AFBB94109FB122FF177EE3A52D@HQMAIL01.nvidia.com> <20120111130056.GK4935@truffala.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20120111130056.GK4935-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: Devicetree Discuss List-Id: devicetree@vger.kernel.org > On Tue, Jan 10, 2012 at 01:54:30PM -0800, Stephen Warren wrote: > > John, David, > > > > What can we do to reach consensus on expanding dtc to handle named > > constants, or in general any future direction to extend the syntax with > > expressions etc.? > > Hrm, so, I'm not at all keen to add a named constant syntax without at > least having an outline of what a future macro/function syntax would > look like. Which is where I thought it was left earlier...? :-) And it's not just what the macro/function syntax will look like, but also how these will play into a more generalized expression handling mechanism. Defining something one-off now that doesn't fit well into a long term plan is less than ideal. Yes, I know that is tantamount to requiring the whole, larger picture be solved first. But Dave is right -- at least an outline of the direction. Seriously, the lexical problems can form some of the nastiest gotchas if we're not careful from the onset. > The latter is almost certain to permit the former as a subcase, and > I'd really rather not end up with two different syntaxes for > constants. Exactly. > Unfortunately, much as I'd like to get all these extended features > into dtc, Agreed.... > > Will either of you be attending Linaro Connect or ELC 2012 in February > > by any chance? We could get together and talk this through in person if > > you are... > > Not for me, I'm afraid. Only if they are in Austin. :-) Which is to say "Sorry, no." jdl