public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] arm: Check for valid FDT after console is up
Date: Wed, 28 Mar 2012 15:11:24 -0600	[thread overview]
Message-ID: <4F737E7C.5030304@wwwdotorg.org> (raw)
In-Reply-To: <1332965305-21151-2-git-send-email-sjg@chromium.org>

On 03/28/2012 02:08 PM, Simon Glass wrote:
> When using CONFIG_OF_CONTROL, add a check that we have a valid FDT
> and panic() if not. This must be done after the console is ready.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Excellent. The behavior after this series is exactly what I was looking for.

One query on this patch though: Is there a need for
arch/arm/lib/board.c:init_sequence[] to still include the call to
fdtdec_check_fdt()? After all, if the console doesn't come from FDT,
then the panic() call this patch adds will show the message so there's
no need to check it earlier, and if the console does come from FDT,
there's little point executing that early assert() since the message
goes nowhere - presumably the code that extracts the console from FDT
would perform this panic if required. So, I would have just moved the
call to the existing fdtdec_check_fdt() myself, rather than splitting it
into two.

Still, as far as I'm concerned, this comment can be addressed in a later
cleanup patch. So, the series:

Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>

  parent reply	other threads:[~2012-03-28 21:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 20:08 [U-Boot] [PATCH 1/2] fdt: Avoid early panic() when there is no FDT present Simon Glass
2012-03-28 20:08 ` [U-Boot] [PATCH 2/2] arm: Check for valid FDT after console is up Simon Glass
2012-03-28 20:34   ` Tom Warren
2012-03-28 20:54     ` Simon Glass
2012-03-28 21:11   ` Stephen Warren [this message]
2012-03-28 21:38     ` Simon Glass
2012-03-28 20:32 ` [U-Boot] [PATCH 1/2] fdt: Avoid early panic() when there is no FDT present Tom Warren
2012-03-29  6:30 ` Wolfgang Denk
2012-03-29 15:57   ` 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=4F737E7C.5030304@wwwdotorg.org \
    --to=swarren@wwwdotorg.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