]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mpc52xx: add delay after resetting transmitter to fix broken chars
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 24 Sep 2015 19:18:34 +0000 (21:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:27:56 +0000 (17:27 +0100)
commit9227f0270a25f6b26d1355f1b522892ff0868d62
tree9e04c7c0d2777fa1622e94a6bbdf149d04ed89bb
parent196246d46847d3f00bdd58be55f0d77c91bc98ca
serial: mpc52xx: add delay after resetting transmitter to fix broken chars

This fixes receiving broken characters on the console from an MPC5125
system when systemd comes up which repeatedly opens and shuts down the
console device.

Trial and error with the needed interval showed that 500 us are good
enough most of the time when using 38400 Bd, so I think 1 ms is a good
compromise between fixing the issue and not penalize faster setups too
much.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mpc52xx_uart.c