From: Jens Wiklander <jens.wiklander@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] fdt: fix fdtdec_setup_memory_banksize()
Date: Tue, 17 Jul 2018 17:42:23 +0200 [thread overview]
Message-ID: <20180717154221.GA17230@jax.urgonet> (raw)
In-Reply-To: <CAPnjgZ3+7MfUkJviGuhThL_F8ZubbbMp8--PTY-XCF=gp7_+_A@mail.gmail.com>
On Sun, Jul 15, 2018 at 11:20:39PM -0600, Simon Glass wrote:
> On 13 July 2018 at 04:12, Jens Wiklander <jens.wiklander@linaro.org> 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 <jens.wiklander@linaro.org>
> > ---
> > lib/fdtdec.c | 20 +++++++++++++++-----
> > 1 file changed, 15 insertions(+), 5 deletions(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> 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
next prev parent reply other threads:[~2018-07-17 15:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 10:12 [U-Boot] [PATCH] fdt: fix fdtdec_setup_memory_banksize() Jens Wiklander
2018-07-16 5:20 ` Simon Glass
2018-07-17 15:42 ` Jens Wiklander [this message]
2018-07-19 1:32 ` Simon Glass
2018-07-19 15:49 ` Jens Wiklander
2018-07-20 2:17 ` Simon Glass
2018-07-27 0:36 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180717154221.GA17230@jax.urgonet \
--to=jens.wiklander@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox