summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorHua Ma <hua.ma@intel.com>2024-10-22 10:57:06 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-10-28 04:18:53 +0000
commit1a3d4b33b6f1ff9a1d66e4bdf110f751ec5f9318 (patch)
treea909f65b5402eabbe17334e016540627f335ba0b /MdeModulePkg/Universal
parent00ccd99d46068c87e73e8e521afea09e19419885 (diff)
downloadedk2-1a3d4b33b6f1ff9a1d66e4bdf110f751ec5f9318.tar.gz
edk2-1a3d4b33b6f1ff9a1d66e4bdf110f751ec5f9318.tar.bz2
edk2-1a3d4b33b6f1ff9a1d66e4bdf110f751ec5f9318.zip
MdeModulePkg/TerminalDxe: Return success if device not support SetControl
Some serial device may not support SetControl. Ignore the error from SetControl if EFI_UNSUPPORTED is return. Signed-off-by: Hua Ma <hua.ma@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c
index dd31347402..f1d0a3466e 100644
--- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c
+++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c
@@ -97,6 +97,9 @@ TerminalConInReset (
if (!EFI_ERROR (Status)) {
Status = TerminalDevice->SerialIo->SetControl (TerminalDevice->SerialIo, EFI_SERIAL_DATA_TERMINAL_READY|EFI_SERIAL_REQUEST_TO_SEND);
+ if (Status == EFI_UNSUPPORTED) {
+ Status = EFI_SUCCESS;
+ }
}
return Status;