console.c (4f2c0a4acffbec01079c28f839422e64ddeff004) console.c (515be7baeddb04d786e3a7f4072791087c25bb04)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * USB Serial Console driver
4 *
5 * Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.com)
6 *
7 * Thanks to Randy Dunlap for the original version of this code.
8 *

--- 155 unchanged lines hidden (view full) ---

164 tty_termios_encode_baud_rate(&tty->termios, baud, baud);
165 memset(&dummy, 0, sizeof(struct ktermios));
166 serial->type->set_termios(tty, port, &dummy);
167
168 tty_port_tty_set(&port->port, NULL);
169 tty_save_termios(tty);
170 tty_kref_put(tty);
171 }
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * USB Serial Console driver
4 *
5 * Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.com)
6 *
7 * Thanks to Randy Dunlap for the original version of this code.
8 *

--- 155 unchanged lines hidden (view full) ---

164 tty_termios_encode_baud_rate(&tty->termios, baud, baud);
165 memset(&dummy, 0, sizeof(struct ktermios));
166 serial->type->set_termios(tty, port, &dummy);
167
168 tty_port_tty_set(&port->port, NULL);
169 tty_save_termios(tty);
170 tty_kref_put(tty);
171 }
172 tty_port_set_initialized(&port->port, 1);
172 tty_port_set_initialized(&port->port, true);
173 }
174 /* Now that any required fake tty operations are completed restore
175 * the tty port count */
176 --port->port.count;
177 /* The console is special in terms of closing the device so
178 * indicate this port is now acting as a system console. */
179 port->port.console = 1;
180

--- 124 unchanged lines hidden ---
173 }
174 /* Now that any required fake tty operations are completed restore
175 * the tty port count */
176 --port->port.count;
177 /* The console is special in terms of closing the device so
178 * indicate this port is now acting as a system console. */
179 port->port.console = 1;
180

--- 124 unchanged lines hidden ---