Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213495
b: refs/heads/master
c: 891b9dd
h: refs/heads/master
i:
  213493: db53de8
  213491: a49ddc9
  213487: 53325ed
v: v3
  • Loading branch information
Jason Wang authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent 411bf6e commit 78ea619
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca2e71aa8cfb0056ce720f3fd53f59f5fac4a3e1
refs/heads/master: 891b9dd10764352926e1e107756aa229dfa2c210
12 changes: 12 additions & 0 deletions trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,18 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
* Re-enable the console device after suspending.
*/
if (console_suspend_enabled && uart_console(uport)) {
/*
* First try to use the console cflag setting.
*/
memset(&termios, 0, sizeof(struct ktermios));
termios.c_cflag = uport->cons->cflag;

/*
* If that's unset, use the tty termios setting.
*/
if (port->tty && port->tty->termios && termios.c_cflag == 0)
termios = *(port->tty->termios);

uart_change_pm(state, 0);
uport->ops->set_termios(uport, &termios, NULL);
console_start(uport->cons);
Expand Down

0 comments on commit 78ea619

Please sign in to comment.