]> git.karo-electronics.de Git - linux-beck.git/commit
serial_core: Update buffer overrun statistics.
authorCorbin <corbinat@gmail.com>
Wed, 23 May 2012 14:37:31 +0000 (09:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 22:40:30 +0000 (15:40 -0700)
commitdabfb351db690964f6c5f5729d4f407586f69a4f
treedec6dc94612e3e37695e2ca248e7b093deb333c7
parent7d0b066fbb912debc18e9556187f2d0313b8469e
serial_core: Update buffer overrun statistics.

Currently, serial drivers don't report buffer overruns. When a buffer overrun
occurs, tty_insert_flip_char returns 0, and no attempt is made to insert that
same character again (i.e. it is lost). This patch reports buffer overruns via
the buf_overrun field in the port's icount structure.

Signed-off-by: Corbin Atkinson <corbin.atkinson@xxxxxx>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c