]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: console: record console from the beginning
authorIon Agorria <ion@agorria.com>
Fri, 5 Jan 2024 07:22:09 +0000 (09:22 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 9 Jan 2024 13:58:33 +0000 (14:58 +0100)
Set flag to enable console record on console_record_init
and not only on console_record_reset_enable. This fixes
missing start of U-Boot log for fastboot oem console
command.

Signed-off-by: Ion Agorria <ion@agorria.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240105072212.6615-5-clamor95@gmail.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
common/console.c

index 6f2089caa009976d1464fd7a3884fedb22ffd6c1..e6d7ebe935fe6d240eff582e3a5c658f322e64f0 100644 (file)
@@ -821,6 +821,9 @@ int console_record_init(void)
        ret = membuff_new((struct membuff *)&gd->console_in,
                          CONFIG_CONSOLE_RECORD_IN_SIZE);
 
+       /* Start recording from the beginning */
+       gd->flags |= GD_FLG_RECORD;
+
        return ret;
 }