[PATCH] serial: imx: count tty buffer overruns

2015-06-20 Thread manfred.schla...@gmx.at
As can be seen in function uart_insert_char (serial_core) the element buf_overrun of struct uart_icount is used to count overruns of tty-buffer. Added support for counting of overruns in imx driver analogue to serial_core. Signed-off-by: Manfred Schlaegl --- drivers/tty/serial/imx.c | 12 +

[PATCH] serial: imx: reduce irq-latency after rx overflow

2015-06-20 Thread manfred.schla...@gmx.at
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 sy

[PATCH] serial: imx: count tty buffer overruns

2015-06-20 Thread manfred.schla...@gmx.at
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As can be seen in function uart_insert_char (serial_core) the element buf_overrun of struct uart_icount is used to count overruns of tty-buffer. Added support for counting of overruns in imx driver analogue to serial_core. Signed-off-by: Manfred Schla

[PATCH] can: fix loss of frames due to wrong assumption in raw_rcv

2015-06-20 Thread manfred.schla...@gmx.at
I've detected a massive loss of can frames on i.MX6 using flexcan driver with 4.1-rc8 and tracked this down to following commit: 514ac99c64b22d83b52dfee3b8becaa69a92bc4a - "can: fix multiple delivery of a single CAN frame for overlapping CAN filters" 514ac99c64b22d83b52dfee3b8becaa69a92bc4a introd