mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-10 22:37:37 +00:00
Discard the input/output data when open tty file. To avoid the mevent callback is triggered immediately when the fd is added to epoll. Also update the uart_drain only read the data from tty file when fifo has available space. Tracked-On: #2159 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>