summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIon Agorria <[email protected]>2024-01-05 09:22:09 +0200
committerMattijs Korpershoek <[email protected]>2024-01-09 14:58:33 +0100
commit90087dd076d42c196de3506b6fa4d052f0869670 (patch)
tree3f00be3a0cd7e7c7edb4d4971d5840b29e9a6ec0
parent9ce75f49127858d1aa36d455a869137e4d36681b (diff)
common: console: record console from the beginning
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 <[email protected]> Signed-off-by: Svyatoslav Ryhel <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
-rw-r--r--common/console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 6f2089caa00..e6d7ebe935f 100644
--- a/common/console.c
+++ b/common/console.c
@@ -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;
}