mirror of https://github.com/acidanthera/audk.git
Revert "TerminalDxe: select the UART's default receive FIFO depth"
This reverts commit 31ae446b1a
.
Changing the receive FIFO depth in Terminal driver Start() is not
recommended.
A new PCD PcdUartDefaultReceiveFifoDepth was added and
MdeModulePkg/SerialDxe driver uses the PCD as the default receive
FIFO depth.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
This commit is contained in:
parent
b359fb9115
commit
6ba44b86f0
|
@ -806,7 +806,7 @@ TerminalDriverBindingStart (
|
|||
Status = TerminalDevice->SerialIo->SetAttributes (
|
||||
TerminalDevice->SerialIo,
|
||||
Mode->BaudRate,
|
||||
0, // the device's default FIFO depth
|
||||
Mode->ReceiveFifoDepth,
|
||||
(UINT32) SerialInTimeOut,
|
||||
(EFI_PARITY_TYPE) (Mode->Parity),
|
||||
(UINT8) Mode->DataBits,
|
||||
|
|
|
@ -547,7 +547,7 @@ TerminalConInTimerHandler (
|
|||
Status = SerialIo->SetAttributes (
|
||||
SerialIo,
|
||||
Mode->BaudRate,
|
||||
0, // the device's default FIFO depth
|
||||
Mode->ReceiveFifoDepth,
|
||||
(UINT32) SerialInTimeOut,
|
||||
(EFI_PARITY_TYPE) (Mode->Parity),
|
||||
(UINT8) Mode->DataBits,
|
||||
|
|
Loading…
Reference in New Issue