lkml.org 
[lkml]   [2009]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] usb console,usb-serial: pass initial console baud on to first tty open
> 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.



\
 
 \ /
  Last update: 2009-09-17 11:15    [from the cache]
©2003-2011 Jasper Spaans