[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090917101441.478b3e9b@lxorguk.ukuu.org.uk>
Date: Thu, 17 Sep 2009 10:14:41 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Jason Wessel <jason.wessel@...driver.com>
Cc: Alan Stern <stern@...land.harvard.edu>, gregkh@...e.de,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists