patch-2.4.25 linux-2.4.25/drivers/char/sb1250_duart.c

Next file: linux-2.4.25/drivers/char/serial.c
Previous file: linux-2.4.25/drivers/char/rtc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/char/sb1250_duart.c linux-2.4.25/drivers/char/sb1250_duart.c
@@ -368,7 +368,7 @@
 
 	spin_lock_irqsave(&us->outp_lock, flags);
 
-	if (us->outp_count >= SERIAL_XMIT_SIZE - 1) {
+	if (us->outp_count == SERIAL_XMIT_SIZE) {
 		spin_unlock_irqrestore(&us->outp_lock, flags);
 		return;
 	}
@@ -910,6 +910,8 @@
 			     port->mode_2, i);
 		WRITE_SERCSR(V_DUART_BAUD_RATE(115200),
 			     port->clk_sel, i);
+		WRITE_SERCSR(M_DUART_RX_EN|M_DUART_TX_EN,
+			     port->cmd, i);
 	}
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)