From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: Proposal: new device-tree syntax and semantics for extendinginformation from included dts files Date: Wed, 13 Oct 2010 19:46:57 -0600 Message-ID: <20101014014657.GF15286@angua.secretlab.ca> References: <1286920561.4535.1315.camel@riker> <20101013231747.GD15286@angua.secretlab.ca> <20101014004550.GC4456@yookeroo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20101014004550.GC4456@yookeroo> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, John Bonesio List-Id: devicetree@vger.kernel.org On Thu, Oct 14, 2010 at 11:45:50AM +1100, David Gibson wrote: > On Wed, Oct 13, 2010 at 04:41:59PM -0700, Stephen Neuendorffer wrote: > > Personally, I hope to avoid replace and remove, since it is difficult to > > tell if > > assumptions about which nodes may be present in an included file if > > parts of the tree > > start getting removed. > > Hrm, that's a point. We may want to make a distinction between the > operations "delete and give an error if it wasn't there before" and > "delete if present". We don't know if this is going to be an issue yet. I suggest start with choosing a stance that covers the path of least surprise (or at least what we think is the path of least surprise), and add the syntax for the other behaviour only if it is actually needed. I say that when trying to delete a node, pitch an error (or warning) if the target node doesn't exist. When adding or overriding an node, don't worry about whether or not an original exists (current behaviour). g.