diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-03-29 15:30:37 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-04-01 09:18:23 +0800 |
commit | 6ba44b86f07c390f058aa6ca4d9691ed9a5041ff (patch) | |
tree | 276484cc5c9cda3b307a3aa12b05f9226bb96ab6 /MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | |
parent | b359fb9115b2bf1b8809d0258cd5bc69846efc84 (diff) | |
download | edk2-platforms-6ba44b86f07c390f058aa6ca4d9691ed9a5041ff.tar.xz |
Revert "TerminalDxe: select the UART's default receive FIFO depth"
This reverts commit 31ae446b1a039a55d0336f2201d77d1032533413.
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>
Diffstat (limited to 'MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c')
-rw-r--r-- | MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index 5adaa9745f..6fde3b2c7a 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -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,
|