]> git.baikalelectronics.ru Git - uboot.git/commit
console: update silent tag after env load
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 2 Aug 2019 12:58:09 +0000 (14:58 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 7 Aug 2019 19:31:04 +0000 (15:31 -0400)
commit998b1640ae8a188ffbf747e6c752759a28862f4e
tree0dcac2a837172ba4eded623568476a02b88d7324
parent53a93900d9cf4e3271b2285686692b8ab7f7db70
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>
common/console.c