From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 05 Dec 2011 14:27:57 -0700 Subject: [U-Boot] [PATCH v2 01/17] fdt: Tidy up a few fdtdec problems In-Reply-To: <1322878300-5551-2-git-send-email-sjg@chromium.org> References: <1322878300-5551-1-git-send-email-sjg@chromium.org> <1322878300-5551-2-git-send-email-sjg@chromium.org> Message-ID: <4EDD375D.9090509@nvidia.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/02/2011 07:11 PM, Simon Glass wrote: ... > +int fdtdec_get_is_enabled(const void *blob, int node) > { > const char *cell; > > cell = fdt_getprop(blob, node, "status", NULL); > if (cell) > - return 0 == strcmp(cell, "ok"); > - return default_val; > + return 0 == strcmp(cell, "okay"); > + return 1; > } The kernel accepts both okay (standard) and ok (non-standard). I assume the latter is required for some in-use-but-technically-incorrect .dts files. I imagine U-Boot should act like the kernel here. (Sorry if I wasn't clear here before; that's certainly what I intended to mean) -- nvpublic