public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Initilize IDE prior environment
Date: Tue, 20 Jun 2017 13:42:08 -0400	[thread overview]
Message-ID: <20170620174208.GH10782@bill-the-cat> (raw)
In-Reply-To: <20170619145604.31628-1-otavio@ossystems.com.br>

On Mon, Jun 19, 2017 at 11:56:04AM -0300, Otavio Salvador wrote:

> To allow the loading of environment from IDE (for example, using FAT)
> the initilization of IDE subsystem must come before the environment
> one.
> 
> Successfully tested on QEMU x86.
> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> 
>  common/board_r.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/common/board_r.c b/common/board_r.c
> index adc1f1937e..247a6668fc 100644
> --- a/common/board_r.c
> +++ b/common/board_r.c
> @@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {
>  #ifdef CONFIG_MMC
>  	initr_mmc,
>  #endif
> +#if defined(CONFIG_IDE)
> +	initr_ide,
> +#endif
>  #ifdef CONFIG_HAS_DATAFLASH
>  	initr_dataflash,
>  #endif
> @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {
>  #if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE)
>  	initr_pcmcia,
>  #endif
> -#if defined(CONFIG_IDE)
> -	initr_ide,
> -#endif
>  #ifdef CONFIG_LAST_STAGE_INIT
>  	INIT_FUNC_WATCHDOG_RESET
>  	/*

Looking at the gap between these two areas, I see that we would
initialize PCI between the two areas.  So there's probably boards with
PCI IDE devices that'll regress if I take this now.  What's the answer?
Long term, device model.  Short term?  Is there a specific upstream
platform that you're seeing the problem or, or just custom / out of
tree?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170620/d7b14a5c/attachment.sig>

  reply	other threads:[~2017-06-20 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-19 14:56 [U-Boot] [PATCH] Initilize IDE prior environment Otavio Salvador
2017-06-20 17:42 ` Tom Rini [this message]
2017-06-20 20:08   ` [U-Boot] " Otavio Salvador
2017-06-20 23:19     ` Bin Meng
2017-06-22 16:05       ` Simon Glass
2017-06-22 23:49         ` Tom Rini
2017-06-23  4:10           ` Heiko Schocher

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=20170620174208.GH10782@bill-the-cat \
    --to=trini@konsulko.com \
    --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