Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187302
b: refs/heads/master
c: dc77f16
h: refs/heads/master
v: v3
  • Loading branch information
Rodolfo Giometti authored and Linus Torvalds committed Mar 12, 2010
1 parent 4756b7d commit 2dc50be
Show file tree
Hide file tree
Showing 2 changed files with 17 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: a0880df0ccde8d551fc4d88c455acb2ee0801e26
refs/heads/master: dc77f161aa5e81ddaf38390094c4f2ca3814e6b1
16 changes: 16 additions & 0 deletions trunk/drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -2407,6 +2407,21 @@ serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
tty_termios_encode_baud_rate(termios, baud, baud);
}

static void
serial8250_set_ldisc(struct uart_port *port)
{
int line = port->line;

if (line >= port->state->port.tty->driver->num)
return;

if (port->state->port.tty->ldisc->ops->num == N_PPS) {
port->flags |= UPF_HARDPPS_CD;
serial8250_enable_ms(port);
} else
port->flags &= ~UPF_HARDPPS_CD;
}

static void
serial8250_pm(struct uart_port *port, unsigned int state,
unsigned int oldstate)
Expand Down Expand Up @@ -2628,6 +2643,7 @@ static struct uart_ops serial8250_pops = {
.startup = serial8250_startup,
.shutdown = serial8250_shutdown,
.set_termios = serial8250_set_termios,
.set_ldisc = serial8250_set_ldisc,
.pm = serial8250_pm,
.type = serial8250_type,
.release_port = serial8250_release_port,
Expand Down

0 comments on commit 2dc50be

Please sign in to comment.