]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tty: serial: msm: Don't reconfigure same baud rate
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 16 Jun 2016 18:24:35 +0000 (11:24 -0700)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Thu, 16 Jun 2016 20:24:09 +0000 (23:24 +0300)
commit3acdf16463fed848d4f87fb827043b27adc79c25
treed99f23de6c0d02901e36fde15636be07716c7ef8
parent2e4646fcf227f8023e535ddb18d3f3185665d8dd
tty: serial: msm: Don't reconfigure same baud rate

msm_set_termios() is called whenever the tty is opened. Setting the baud
rate requires a full reset of the msm serial block, even when the rate
is unchanged. In the case when the same uart is used as console this
reset will discard any console output data still being clocked out of
the TX fifo.

By skipping the rate-change in the case where the baud rate is unchanged
since last request we can avoid the reset and the discarding of the
data.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/tty/serial/msm_serial.c