MdeModulePkg: Enable Data Terminal at end of serial

When a Serial device resets, the Modem Control Register Data Terminal
Ready and Request to Send need to be cleared also. Otherwise the
registers will be left in their previous state, and the connected device
will not be able to transmit data.

Signed-off-by: Kenneth Lautner <kenlautner3@gmail.com>
This commit is contained in:
Ken Lautner 2024-08-23 17:41:49 -07:00 committed by mergify[bot]
parent bacee5113e
commit babccb841d

View File

@ -95,6 +95,10 @@ TerminalConInReset (
);
}
if (!EFI_ERROR (Status)) {
Status = TerminalDevice->SerialIo->SetControl (TerminalDevice->SerialIo, EFI_SERIAL_DATA_TERMINAL_READY|EFI_SERIAL_REQUEST_TO_SEND);
}
return Status;
}