mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
For communication vuart, when it send data to target vuart's fifo, it should meet the conditions: 1. MCR_LOOPBACK is not set 2. LCR_DLAB is not set 3. access reg is UART16550_THR 4. target_vu is not null But the LCR_DLAB is missed now, and when vuart set it's UART16550_DLL, it will be send to target by mistake as UART16550_DLL = UART16550_THR. Add the missed condition. DLAB in uart16550 spec: Divisor Latch Access Bit. 1 = Allows access to the Divisor Latch Registers and reading of the FIFO Control Register. 0 = Allows access to RBR, THR, IER and IIR registers. Tracked-On: #3681 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@Intel.com>