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:
Ruiyu Ni 2016-03-29 15:30:37 +08:00
parent b359fb9115
commit 6ba44b86f0
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,