On Tue, Aug 5, 2008 at 3:08 PM, Scott Wood <[EMAIL PROTECTED]> wrote: > Grant Likely wrote: >> >> Is it not sufficient to search the tree for a node with the >> <chip>-immr compatible value? I don't think this is the intended use >> case of aliases. > > That get's really annoying in code that is meant to deal with multiple > chips. I don't think finding the network or serial node that corresponds to > u-boot's enumeration is what it's meant for, either, but pretty much any > alternative you can come up with has someone saying that it's not what > *that* was meant for, either.
But finding nodes that meet a criteria *is* what compatible is for and there is precedence for it. All u-boot platforms are finding the node by path right now, and so all of them need to be changed. Changing them to find by compatible that is set per-board or per-SoC makes complete sense to me. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev