mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
00ccd99d46
commit
1a3d4b33b6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue