From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 5 Dec 2011 16:18:37 -0600 Subject: [U-Boot] [PATCH v2 01/17] fdt: Tidy up a few fdtdec problems In-Reply-To: References: <1322878300-5551-1-git-send-email-sjg@chromium.org> <1322878300-5551-2-git-send-email-sjg@chromium.org> <4EDD375D.9090509@nvidia.com> <4EDD4091.1030708@nvidia.com> Message-ID: <4EDD433D.4060603@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/05/2011 04:11 PM, Simon Glass wrote: > Hi Stephen, > > On Mon, Dec 5, 2011 at 2:07 PM, Stephen Warren 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