[lkml]   [2009]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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    [W:0.048 / U:0.428 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site