From: Aditya Dutt Date: Fri, 5 Sep 2025 14:06:11 +0000 (+0530) Subject: cmd: terminal: avoid serial_reinit_all() with DM_SERIAL enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc9347a98c3fb32610d4324c9e0f6239f013143;p=thirdparty%2Fu-boot.git cmd: terminal: avoid serial_reinit_all() with DM_SERIAL enabled serial_reinit_all() is only available when CONFIG DM_SERIAL is disabled and CONFIG_SERIAL is enabled. Signed-off-by: Aditya Dutt --- diff --git a/cmd/terminal.c b/cmd/terminal.c index d803bc6c896..14610694255 100644 --- a/cmd/terminal.c +++ b/cmd/terminal.c @@ -24,7 +24,7 @@ int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[]) if (!dev) return -1; - if (IS_ENABLED(CONFIG_SERIAL)) + if (IS_ENABLED(CONFIG_SERIAL) && !IS_ENABLED(CONFIG_DM_SERIAL)) serial_reinit_all(); printf("Entering terminal mode for port %s\n", dev->name);