mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <dev@lynxeye.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 4/5] ARM: tegra: add barebox update handler to Beaver board
Date: Sun, 01 Mar 2015 13:10:47 +0100	[thread overview]
Message-ID: <1425211847.2197.3.camel@lynxeye.de> (raw)
In-Reply-To: <20150301072330.GB11010@pengutronix.de>

Am Sonntag, den 01.03.2015, 08:23 +0100 schrieb Sascha Hauer:
> On Fri, Feb 27, 2015 at 08:22:17PM +0100, Lucas Stach wrote:
> > Signed-off-by: Lucas Stach <dev@lynxeye.de>
> > ---
> >  arch/arm/boards/nvidia-beaver/board.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/arch/arm/boards/nvidia-beaver/board.c b/arch/arm/boards/nvidia-beaver/board.c
> > index d270301..b4d856e 100644
> > --- a/arch/arm/boards/nvidia-beaver/board.c
> > +++ b/arch/arm/boards/nvidia-beaver/board.c
> > @@ -19,6 +19,7 @@
> >  #include <gpio.h>
> >  #include <i2c/i2c.h>
> >  #include <init.h>
> > +#include <mach/tegra-bbu.h>
> >  
> >  static int nvidia_beaver_fs_init(void)
> >  {
> > @@ -53,6 +54,9 @@ static int nvidia_beaver_device_init(void)
> >  
> >  	barebox_set_hostname("beaver");
> >  
> > +	tegra_bbu_register_emmc_handler("eMMC", "/dev/disk0.boot0",
> > +					BBU_HANDLER_FLAG_DEFAULT);
> 
> 'disk0' is not a persistent name and will change when your SD slots are
> probed in a different order. You should add aliases to the device nodes
> and use of_alias_get() to obtain them, see for example imx-esdhc.c
> 
It's not a problem for these patches, as both boards have their
environment on disk0.boot1, so the eMMC will always be the first SDMMC
device to be detected and consequently always get number 0 assigned.

But in general I agree with you and will add the alias handling in a
follow on series.

Regards,
Lucas



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-03-01 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 19:22 [PATCH 1/5] bbu: include necessary headers Lucas Stach
2015-02-27 19:22 ` [PATCH 2/5] bbu: make bbu confirm a bit more verbose Lucas Stach
2015-02-27 19:22 ` [PATCH 3/5] ARM: tegra: add eMMC barebox update handler Lucas Stach
2015-02-27 19:22 ` [PATCH 4/5] ARM: tegra: add barebox update handler to Beaver board Lucas Stach
2015-03-01  7:23   ` Sascha Hauer
2015-03-01 12:10     ` Lucas Stach [this message]
2015-02-27 19:22 ` [PATCH 5/5] ARM: tegra: add barebox update handler to Jetson board Lucas Stach

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=1425211847.2197.3.camel@lynxeye.de \
    --to=dev@lynxeye.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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