patch-2.1.128 linux/include/asm-m68k/serial.h

Next file: linux/include/linux/acct.h
Previous file: linux/include/asm-m68k/ide.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.127/linux/include/asm-m68k/serial.h linux/include/asm-m68k/serial.h
@@ -336,9 +336,21 @@
 	if (tty->flip.count >= TTY_FLIPBUF_SIZE)
 		return;
 	tty->flip.count++;
-	if (err == TTY_BREAK) {
+	switch(err) {
+	case TTY_BREAK:
+		info->icount.brk++;
 		if (info->flags & ASYNC_SAK)
 			do_SAK(tty);
+		break;
+	case TTY_PARITY:
+		info->icount.parity++;
+		break;
+	case TTY_OVERRUN:
+		info->icount.overrun++;
+		break;
+	case TTY_FRAME:
+		info->icount.frame++;
+		break;
 	}
 	*tty->flip.flag_buf_ptr++ = err;
 	*tty->flip.char_buf_ptr++ = ch;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov