diff options
author | Patrick Delaunay | 2019-08-02 14:58:09 +0200 |
---|---|---|
committer | Tom Rini | 2019-08-07 15:31:04 -0400 |
commit | bf46be72163d90797d3ee5252395da69c6fc2e6b (patch) | |
tree | 0dcac2a837172ba4eded623568476a02b88d7324 | |
parent | 97f3c09706543205f7a2f6fa91e110946c302fcb (diff) |
console: update silent tag after env load
Update the "silent" property with the variable "silent" get from
saved environment, it solves the issue when:
- CONFIG_SILENT_CONSOLE and CONFIG_SYS_CONSOLE_IS_IN_ENV are activated
- silent is not defined in default environment
- silent is requested in saved environment with:
> env set silent 1; env save
On next reboot the console is not disabled as expected after relocation
and the environment load from flash (the callback is not called when
the INSERT is requested in the created hash table)
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
-rw-r--r-- | common/console.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index 0b0dd76256c..7b45403bb3e 100644 --- a/common/console.c +++ b/common/console.c @@ -793,6 +793,9 @@ int console_init_r(void) int iomux_err = 0; #endif + /* update silent for env loaded from flash (initr_env) */ + console_update_silent(); + /* set default handlers at first */ gd->jt->getc = serial_getc; gd->jt->tstc = serial_tstc; @@ -884,6 +887,7 @@ int console_init_r(void) struct list_head *pos; struct stdio_dev *dev; + /* update silent for env loaded from flash (initr_env) */ console_update_silent(); #ifdef CONFIG_SPLASH_SCREEN |