summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/PlatformCI
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2020-12-07 22:51:14 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-19 01:29:44 +0000
commit6932f4bfe552c1704c5715430de6045c78a5b62f (patch)
tree0b11f809b4c0fc656a5b89b364ee4ac8d10511d6 /EmulatorPkg/PlatformCI
parent1159fc3230aee02acc60aa245ce047217fd8b87e (diff)
downloadedk2-6932f4bfe552c1704c5715430de6045c78a5b62f.tar.gz
edk2-6932f4bfe552c1704c5715430de6045c78a5b62f.tar.bz2
edk2-6932f4bfe552c1704c5715430de6045c78a5b62f.zip
MdeModulePkg/PciSioSerialDxe: Flush Tx before config change
https://bugzilla.tianocore.org/show_bug.cgi?id=3114 Add logic to flush all UART transmit buffers if there is a config change from Reset(), SetAttributes() or SetControl(). Use a timeout in the flush operation, so the system can continue to boot if the transmit buffers can not be flushed for any reason. This change prevents lost characters on serial debug logs and serial consoles when a config change is made. It also prevents a UART from getting into a bad state or reporting error status due to characters being transmitted at the same time registers are updated with new communications settings. Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'EmulatorPkg/PlatformCI')
0 files changed, 0 insertions, 0 deletions