On 12/05/2011 04:11 PM, Simon Glass wrote: > Hi Stephen, > > On Mon, Dec 5, 2011 at 2:07 PM, Stephen Warren <swar...@nvidia.com> wrote: >> My point is that there are probably .dts files using "ok" instead of >> "okay" or the kernel wouldn't support "ok". People will probably want to >> use those with U-Boot without changing anything else. So, U-Boot should >> interpret the FDT in the same way as the kernel.
The kernel has to deal with real Open Firmware systems, some of which pass buggy trees. U-Boot should not blindly imitate all of Linux's workarounds. > OK, how about: > return 0 == strncmp(cell, "ok", 2); > > (I do feel that if you do this sort of thing you end up with people > using 'ok' even in new fdts, since they look at code like this and > think it is fine) Indeed. -Scott _______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss