From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Wiklander Date: Tue, 17 Jul 2018 17:42:23 +0200 Subject: [U-Boot] [PATCH] fdt: fix fdtdec_setup_memory_banksize() In-Reply-To: References: <20180713101211.26028-1-jens.wiklander@linaro.org> Message-ID: <20180717154221.GA17230@jax.urgonet> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jul 15, 2018 at 11:20:39PM -0600, Simon Glass wrote: > On 13 July 2018 at 04:12, Jens Wiklander wrote: > > Prior to this patch is fdtdec_setup_memory_banksize() incorrectly > > ignoring the "status" field. This patch fixes that by testing the status > > with fdtdec_get_is_enabled() before using a memory node. > > > > Signed-off-by: Jens Wiklander > > --- > > lib/fdtdec.c | 20 +++++++++++++++----- > > 1 file changed, 15 insertions(+), 5 deletions(-) > > Reviewed-by: Simon Glass > > But can you convert this to livetree at the same time? E.g. use ofnode > functions. I can try, but the ofnode concept is new to me. This patch is based on the fdt_node_offset_by_prop_value() function. I can't find any such ofnode function or any other suitable helper function. Perhaps I'm missing something, or should I add an ofnode_by_prop_value() function (similar to ofnode_by_compatible())? Please advice. Thanks, Jens