From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: at91: Don't invoke spl_boot_device() twice
Date: Sat, 14 May 2016 23:44:13 +0200 [thread overview]
Message-ID: <57379C2D.3050307@denx.de> (raw)
In-Reply-To: <1463262148-8858-1-git-send-email-marex@denx.de>
On 05/14/2016 11:42 PM, Marek Vasut wrote:
> Since the spl_boot_mode() is now passed the boot device to boot from,
> make use of it instead of inquiring for the boot device again. This
> allows board_boot_order() to function correctly.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Andreas Bie?mann <andreas.devel@googlemail.com>
> ---
> arch/arm/mach-at91/spl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This one depends on :
[PATCH] common: Pass the boot device into spl_boot_mode()
> diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c
> index 561cf5f..236c8ec 100644
> --- a/arch/arm/mach-at91/spl.c
> +++ b/arch/arm/mach-at91/spl.c
> @@ -72,7 +72,7 @@ u32 spl_boot_device(void)
>
> u32 spl_boot_mode(const u32 boot_device)
> {
> - switch (spl_boot_device()) {
> + switch (boot_device) {
> #ifdef CONFIG_SYS_USE_MMC
> case BOOT_DEVICE_MMC1:
> case BOOT_DEVICE_MMC2:
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-14 21:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-14 21:42 [U-Boot] [PATCH] ARM: at91: Don't invoke spl_boot_device() twice Marek Vasut
2016-05-14 21:44 ` Marek Vasut [this message]
2016-06-25 21:24 ` Andreas Bießmann
2016-06-26 18:20 ` [U-Boot] " Andreas Bießmann
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=57379C2D.3050307@denx.de \
--to=marex@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.