serial: pl01x: drain PL01x FIFO before baudrate change
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 2 Oct 2011 11:52:52 +0000 (11:52 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 21 Oct 2011 22:42:04 +0000 (00:42 +0200)
commit96baa4c37695b4dac2bde981f59c38e7af19f2eb
tree4c9c24511165b0571d8ac9579a982ba03483fd1e
parent349e83f071e2bf7bd9fec50377bbdcfb1a143666
serial: pl01x: drain PL01x FIFO before baudrate change

Not draining the FIFO and waiting for the UART to be non-busy
before changing baudrate results in crap characters on the
console, so let's wait for the FIFO to drain and the last
character to be clocked out before we do that.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/serial/serial_pl01x.c