]> git.karo-electronics.de Git - linux-beck.git/commit
serial: imx: reduce irq-latency after rx overflow
authorManfred Schlaegl <manfred.schlaegl@gmx.at>
Sat, 20 Jun 2015 17:25:52 +0000 (19:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 00:37:54 +0000 (17:37 -0700)
commite9b5a9825f6b02a9cf86697bcffafd3d7898f9f6
tree9acd5a45e426a1fe8110616d2726154edc82fa8c
parent9b289932610edff7d0c11228efbf7a6f81361298
serial: imx: reduce irq-latency after rx overflow

To prevent problems with interrupt latency, and due to the fact, that
the error will be counted anyway (icount.overrun), the dev_err is simply
removed.

Background:
If an rx-fifo overflow occurs a dev_err message was called in interrupt
context. Since dev_err messages are written to console in a synchronous way
(unbuffered), and console may be a serial terminal, this leads to a
highly increased interrupt-latency (several milliseconds).
As a result of the high latency more rx-fifo overflows will happen, and
therefore a feedback loop of errors is created.

Signed-off-by: Manfred Schlaegl <manfred.schlaegl@gmx.at>
Acked-By: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c