serial/ns16550: wait for TEMT before initializing
authorScott Wood <scottwood@freescale.com>
Tue, 18 Sep 2012 23:19:05 +0000 (18:19 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 26 Nov 2012 21:41:20 +0000 (15:41 -0600)
commitcb55b3320014b7f6014416c556fe506efbf0a84b
treeece89cb1b0454dda903960f615cc2cac1f7bebbb
parent48cbc3a8761fad6624fb63f1d56f09a30322bfd9
serial/ns16550: wait for TEMT before initializing

TEMT is set when the transmitter is totally empty and all output has
finished.

This prevents output problems (including a loss of synchronization
observed on p2020 that persisted for quite a while) if SPL has output
still on its way out.

Signed-off-by: Scott Wood <scottwood@freescale.com>
--
v2: fixed typo in subject, and explained what the bit does in the changelog
drivers/serial/ns16550.c