]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/BaseSerialPortLib16550: Fix Serial Port Ready
authorAshish Singhal <ashishsingha@nvidia.com>
Mon, 27 Jan 2020 17:52:45 +0000 (01:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Feb 2020 14:46:42 +0000 (14:46 +0000)
commit7285f275ff5482fb8cbf1ce5f4cd2e4df0a3cc62
tree2e11112b0e604db81b1533709611d60204a1bebf
parent1549651da623aa35c745bd1f283c907324bd6cc9
MdeModulePkg/BaseSerialPortLib16550: Fix Serial Port Ready

Before writing data to FIFO, wait for the serial port to be ready,
to make sure both the transmit FIFO and shift register empty. Code
comment was saying the right thing but code was missing a check.

Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c