changeset 1715:bffb25915831 1.3.0

No longer need to revert this patch in 3.16, they fixed it.
author Rob Landley <rob@landley.net>
date Thu, 25 Dec 2014 21:46:31 -0600
parents bd277be2c77b
children 73b3dde1286d
files sources/patches/linux-unbreakppc.patch
diffstat 1 files changed, 0 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/sources/patches/linux-unbreakppc.patch	Thu Dec 25 19:51:25 2014 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-Reverse a commit that completely broke powerpc serial output.
-
-commit 717f3bbab3c7628736ef738fdbf3d9a28578c26c
-Author: Seth Bollinger <sethb@digi.com>
-Date:   Tue Mar 25 12:55:37 2014 -0500
-
-    serial_core: Fix conditional start_tx on ring buffer not empty
-    
-    If the serial_core ring buffer empties just as the tty layer receives
-    an XOFF, then start_tx will never be called when the tty layer
-    receives an XON as the serial_core ring buffer is empty.  This will
-    possibly leave a few bytes trapped in the fifo for drivers that
-    disable the transmitter when flow controlled.
-    
-    Signed-off-by: Seth Bollinger <sethb@digi.com>
-    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
-index 2cf5649..dd1a7be 100644
---- a/drivers/tty/serial/serial_core.c
-+++ b/drivers/tty/serial/serial_core.c
-@@ -89,7 +89,8 @@ static void __uart_start(struct tty_struct *tty)
- 	struct uart_state *state = tty->driver_data;
- 	struct uart_port *port = state->uart_port;
- 
--	if (!tty->stopped && !tty->hw_stopped)
-+	if (!uart_circ_empty(&state->xmit) && state->xmit.buf &&
-+	    !tty->stopped && !tty->hw_stopped)
- 		port->ops->start_tx(port);
- }
-