lkml.org 
[lkml]   [1996]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: Linux-2.0.1 (patch in serial.c is a problem)
Date
From
> 
> Anything else?
>
> Linus
>

The patch in serial.c breaks all getty's (mgetty/agetty/uugetty)
on serial lines, because CLOCAL is not long set by default.
I undo this patch for me, now it is working.

diff -u --recursive --new-file v2.0.0/linux/drivers/char/serial.c linux/drivers/
char/serial.c
--- v2.0.0/linux/drivers/char/serial.c Sun Jun 9 13:28:42 1996
+++ linux/drivers/char/serial.c Tue Jul 2 19:08:42 1996
@@ -2755,9 +2755,8 @@
serial_driver.type = TTY_DRIVER_TYPE_SERIAL;
serial_driver.subtype = SERIAL_TYPE_NORMAL;
serial_driver.init_termios = tty_std_termios;
- serial_driver.init_termios.c_cflag =
- B9600 | CS8 | CREAD | HUPCL | CLOCAL;
- serial_driver.flags = TTY_DRIVER_REAL_RAW;
+ serial_driver.init_termios.c_lflag &=~ (ISIG | ICANON | ECHO);
+ serial_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_RESET_TERMIOS;
serial_driver.refcount = &serial_refcount;
serial_driver.table = serial_table;
serial_driver.termios = serial_termios;
calle
--
calle@calle.in-berlin.de


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.092 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site