Revert "serial: 8250: Fix restoring termios speed after suspend"
This reverts commit8f740c11d8which is commit379a33786dupstream. It breaks the build due to a dependant upstream patch being reverted earlier in the Android tree because of ABI breakages and it not being needed at all. So it is safe to remove here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ibc77017d0655165eb6962bf722c7cbbd8cc17480
This commit is contained in:
@@ -3288,13 +3288,8 @@ static void serial8250_console_restore(struct uart_8250_port *up)
|
||||
unsigned int baud, quot, frac = 0;
|
||||
|
||||
termios.c_cflag = port->cons->cflag;
|
||||
termios.c_ispeed = port->cons->ispeed;
|
||||
termios.c_ospeed = port->cons->ospeed;
|
||||
if (port->state->port.tty && termios.c_cflag == 0) {
|
||||
if (port->state->port.tty && termios.c_cflag == 0)
|
||||
termios.c_cflag = port->state->port.tty->termios.c_cflag;
|
||||
termios.c_ispeed = port->state->port.tty->termios.c_ispeed;
|
||||
termios.c_ospeed = port->state->port.tty->termios.c_ospeed;
|
||||
}
|
||||
|
||||
baud = serial8250_get_baud_rate(port, &termios, NULL);
|
||||
quot = serial8250_get_divisor(port, baud, &frac);
|
||||
|
||||
Reference in New Issue
Block a user