[Resending with a proper mail client, because it didn't go to the lists] On Tue, Jan 2, 2018 at 11:42 PM, David Gibson <david@xxxxxxxxxxxxxxxxxxxxx> wrote: > Regardless of anything else, these two patches need different one-line > summaries. > > On Mon, Jan 01, 2018 at 12:59:44AM -0600, kevans@xxxxxxxxxxx wrote: >> Currently, references cannot be made to nodes in the base that do not already >> have phandles, limiting us to nodes that have been referenced in the base fdt. >> Lift that restriction by allocating them on an as-needed basis. > > Hmm. I'm a bit dubious about this. > > - My feeling is that one of the problems with the overlay format is > that it's already too free, allowing the overlay to change > essentially anything in the base tree. So I'm not that keen on > making it even more free. > > - An overlay can already add a 'phandle' property to a node in the > base tree. Can you use that directly instead of adding a new > mechanism? > That feels like it might be a bit difficult to work with, for a couple of reasons that might be logically wrong, so forgive me if I'm thinking wrong: - A phandle is just a number, so it won't get adjusted as overlays get applied. All of the overlays that one of my boards needs to apply would need to choose sufficiently high phandles that they hopefully won't conflict with other overlays, especially as new nodes get introduced with their own phandles. - If more than one overlay needs to reference a specific node, we have other conflicts. These overlays aren't necessarily related, but they would need to agree with each other on the phandle of the node OR make sure they apply in a specific order so one can add the phandle and subsequent overlays can reference them symbolically only as intended. The problem is that these overlays aren't necessarily curated by a single authority, so conflicts with multiple overlays trying to reference a node is scary. Ideally, we'd like these things to be as usable as possible for average Joe Blow. -- To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html