serial: 8250_early: confirm empty transmitter after sending characters
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 30 Oct 2015 02:39:04 +0000 (11:39 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitf2bfdb0628d50339a70de475eb2be1c4c1eb9014
treec832d7c140eaedf72ce1592a106451113e0836a1
parent2cda227bba7e8398c6f8a7792c7f35818187dcc6
serial: 8250_early: confirm empty transmitter after sending characters

The current code waits until the transmitter becomes empty,
before sending each character, and after finishing the whole string.
This seems a bit redundant.

It can be more efficient by checking the transmitter only after sending
each character.  This should be safe because the transmitter is already
empty at the first entry of serial_putc().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_early.c