Re: [edk2-devel] [PATCH] MdeModulePkg/BaseSerialPortLib16550: Fix Serial Port Ready

2020-02-04 Thread Gao, Zhichao
inghal > Subject: [edk2-devel] [PATCH] 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 th

[edk2-devel] [PATCH] MdeModulePkg/BaseSerialPortLib16550: Fix Serial Port Ready

2020-01-27 Thread Ashish Singhal
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. Signed-off-by: Ashish Singhal --- .../Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c