target uart: fix preservation of LCR
authorAlex Badea <vamposdecampos@gmail.com>
Wed, 17 Nov 2010 21:35:16 +0000 (23:35 +0200)
committerHarald Welte <laforge@gnumonks.org>
Wed, 17 Nov 2010 22:39:46 +0000 (23:39 +0100)
commit4ad8b730a0f09fae020e2cf13fdbf301c1e2aec9
treedfa889ef840084b128112bfad5bc153d8fb540e8
parenta69d67ec732ca35b2c71c261af04456ed64b9c9b
target uart: fix preservation of LCR

Store old_lcr only when switching to LCR == 0xBF.  We don't want
to clobber old_lcr when switching back, otherwise we can't restore
the previous LCR value.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
src/target/firmware/calypso/uart.c