Thread (18 messages) 18 messages, 3 authors, 2016-09-15

Re: [PATCH 9/9] tty: serial_core: add tty NULL check in uart_port_startup

From: One Thousand Gnomes <hidden>
Date: 2016-09-11 21:22:02
Also in: lkml

On Fri,  9 Sep 2016 17:37:10 -0500
Rob Herring [off-list ref] wrote:
If we don't have a tty when calling uart_port_startup, skip the baudrate
and modem control setup which depend on tty->termios struct. Either
tty_port clients will configure the line in a separate call or we'll
move termios into the tty_port.
I don't think getting rid of the tty object makes any sense whatsoever
just create a kernel one.

Either way the giant churny patch and this hack should be deferred in
favour of moving the termios structure into the tty port (and the locks
for it) and doing the right job once.

The termios does I agree belong in the tty_port so irrespective of final
direction fixing that is a right move.

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help