[PATCH] 8xx_io/uart.c

Joakim Tjernlund joakim.tjernlund at lumentis.se
Sat Feb 8 05:43:27 EST 2003


> The pasting into the console bug is actually caused in
> 'drivers/char/n_tty.c' (standard tty line discipline) by not handling a
> failed call to 'opost(...)' (if returns -1 if tx buffer is full and char
> must be retried) in 'echo_char()'.  The pasted data is received fine....just
> the echo fails.

got the same here.

>
> >From 'drivers/char/n_tty.c':
> ================================================
> /* Must be called only when L_ECHO(tty) is true. */
>
> static void echo_char(unsigned char c, struct tty_struct *tty)
> {
> 	if (L_ECHOCTL(tty) && iscntrl(c) && c != '\t') {
> 		put_char('^', tty);
> 		put_char(c ^ 0100, tty);
> 		tty->column += 2;
> 	} else
> 		opost(c, tty);
> }
> ===============================================
>

Great, do you have a fix?

    Jocke


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list