Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97564
b: refs/heads/master
c: 64e9159
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 3, 2008
1 parent 1ab74f0 commit 133bcd2
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 4b34fe156455d26ee6ed67b61539f136bf4e439c
refs/heads/master: 64e9159f5d2c4edf5fa6425031e556f8fddaf7e6
10 changes: 10 additions & 0 deletions trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,15 @@ uart_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd,
return ret;
}

static void uart_set_ldisc(struct tty_struct *tty, int ldisc)
{
struct uart_state *state = tty->driver_data;
struct uart_port *port = state->port;

if (port->ops->set_ldisc)
port->ops->set_ldisc(port);
}

static void uart_set_termios(struct tty_struct *tty,
struct ktermios *old_termios)
{
Expand Down Expand Up @@ -2288,6 +2297,7 @@ static const struct tty_operations uart_ops = {
.unthrottle = uart_unthrottle,
.send_xchar = uart_send_xchar,
.set_termios = uart_set_termios,
.set_ldisc = uart_set_ldisc,
.stop = uart_stop,
.start = uart_start,
.hangup = uart_hangup,
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/serial_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ struct uart_ops {
void (*shutdown)(struct uart_port *);
void (*set_termios)(struct uart_port *, struct ktermios *new,
struct ktermios *old);
void (*set_ldisc)(struct uart_port *);
void (*pm)(struct uart_port *, unsigned int state,
unsigned int oldstate);
int (*set_wake)(struct uart_port *, unsigned int state);
Expand Down

0 comments on commit 133bcd2

Please sign in to comment.