diff options
author | San Mehat <san@google.com> | 2009-07-29 20:21:28 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-07-30 16:24:53 -0700 |
commit | db83a334959994d2a617812b8b536d18fa072ce2 (patch) | |
tree | a30983a7947c318991f3c035dc267610e458ba2b /drivers/serial | |
parent | 3509ff633acf767c5b43015e66940ec0dc32d71f (diff) |
serial_core: Add wake_peer uart operation which is called before starting UART TX. The idea here is to provide a mechanism where we can wakeup our peer before sending data.
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 42f4e66fccaf..4632059464ea 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -94,6 +94,9 @@ static void __uart_start(struct tty_struct *tty) struct uart_state *state = tty->driver_data; struct uart_port *port = state->port; + if (port->ops->wake_peer) + port->ops->wake_peer(port); + if (!uart_circ_empty(&state->info.xmit) && state->info.xmit.buf && !tty->stopped && !tty->hw_stopped) port->ops->start_tx(port); |