Subject: [PATCH] IP22 zilog timeout fix

From: Kaj-Michael Lang <[email-masked]>
Date: Mon, 14 Feb 2005 15:56:41 +0000 (Local time zone must be set--see zic manual page)

Peter Fuerst posted this fix sometime in December already, but
looks like it's not in CVS yet.
Without this fix, serial console is impossbile to use as login
never shows a prompt and output from userland is also slow.

Index: drivers/serial/ip22zilog.c
===================================================================
RCS file: /home/cvs/linux/drivers/serial/ip22zilog.c,v
retrieving revision 1.16
diff -u -r1.16 ip22zilog.c
--- drivers/serial/ip22zilog.c	3 Dec 2004 06:07:38 -0000	1.16
+++ drivers/serial/ip22zilog.c	14 Feb 2005 13:47:08 -0000
@@ -881,6 +881,7 @@
   	up->cflag = termios->c_cflag;

   	ip22zilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port));
+	uart_update_timeout(port, termios->c_cflag, baud);

   	spin_unlock_irqrestore(&up->port.lock, flags);
   }
@@ -1047,6 +1048,8 @@
   	}

   	con->cflag = cflag | CS8;			/* 8N1 */
+
+	uart_update_timeout(&ip22zilog_port_table[con->index].port, cflag, baud);
   }

   static int __init ip22zilog_console_setup(struct console *con, char *options)

-- 
Kaj-Michael Lang, Turku, Finland
[email-masked] http://www.tal.org/