diff options
author | San Mehat <san@google.com> | 2009-07-29 20:21:28 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:15 -0700 |
commit | 93739c0025f11be799729e946fdf69473fc4ffc9 (patch) | |
tree | 10d594021c51e8388f66d1f3a267466e8b4e0cd8 /drivers/tty | |
parent | 261a79980b356d131d8004e5bf507d64c0e7fba1 (diff) | |
download | kernel_samsung_crespo-93739c0025f11be799729e946fdf69473fc4ffc9.zip kernel_samsung_crespo-93739c0025f11be799729e946fdf69473fc4ffc9.tar.gz kernel_samsung_crespo-93739c0025f11be799729e946fdf69473fc4ffc9.tar.bz2 |
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/tty')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index db7912c..62ba22f 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -91,6 +91,9 @@ static void __uart_start(struct tty_struct *tty) struct uart_state *state = tty->driver_data; struct uart_port *port = state->uart_port; + if (port->ops->wake_peer) + port->ops->wake_peer(port); + if (!uart_circ_empty(&state->xmit) && state->xmit.buf && !tty->stopped && !tty->hw_stopped) port->ops->start_tx(port); |