Re: [PATCH 3/3] usb console,usb-serial: pass initial console baudon to first tty open
From: Alan Cox
Date: Thu Sep 17 2009 - 05:13:24 EST
> It looked like the API for the tty subsystem was gradually changing such
> that the ldisc structure could ultimately get shared for use with the
> console, but this work is not complete, so we are somewhere in between.
The mechanics of this are already there. A tty drive can manage its own
termios structs, and the termios structs are pointers in the tty structure
> The question is what is an acceptable solution?
Take a look at usb_serial.c:serial_install. You can do the console state
preservation there and cleanly.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/