ARM: meson: serial: use meson_uart_tx_empty() to wait for empty
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 18 Nov 2015 14:41:16 +0000 (14:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitf1f5c1400f7907a1b52be94cabe8992b480785cf
treedee699e1aa353ee661731d6c2221a34b0cc98f0e
parent855ddcab352c15b8c4d0bd93759f821250c601fb
ARM: meson: serial: use meson_uart_tx_empty() to wait for empty

Use the meson_uart_tx_empty() instead of a direct read of the status
register. This is easier to read and will ensure the UART's transmit
state machine is idle when trying to update the baud rate.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Tested-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c