serial: ns16550: Use old baud rate divisor for flushing if not given
authorPatrik Dahlström <risca@dalakolonin.se>
Sat, 21 Dec 2019 16:25:12 +0000 (17:25 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2020 16:19:52 +0000 (11:19 -0500)
commit1c16606aac8f03be80d9c38ada00fd03123e0dbe
tree5dbc242a579e1d6d31214f6482f7029f9558b005
parentb1b147f2b839c45b896dfacf5a2929313d88aa63
serial: ns16550: Use old baud rate divisor for flushing if not given

If baud_divisor is not set (i.e. == -1), we should use the baud divisor
already in use for flushing the xmit register. If we don't flush the
xmit register, then SPL will hang.

Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
drivers/serial/ns16550.c