minicom [non-] bug and linux kernel 2.6.25.4

R.L. Horn lists at eastcheap.org
Wed Jun 18 04:09:10 UTC 2008


Well, it looks like the minicom/DTR/RTS problem has been resolved (kernel 
bug), though with no guarantee that it will be fixed before linux-2.6.26.

In the meantime, anyone struggling with minicom not working with a 2.6.25 
kernel may apply the enclosed kernel patch.  It will work with versions up 
to and including 2.6.25.7, after which you're on your own (hopefully, 
25.8, if there is one, will work correctly).
-------------- next part --------------
--- linux-2.6.25/drivers/serial/8250.c	2008-04-16 21:49:44.000000000 -0500
+++ linux-2.6.25-new/drivers/serial/8250.c	2008-06-17 06:20:41.000000000 -0500
@@ -2174,7 +2174,10 @@
 	}
 	serial8250_set_mctrl(&up->port, up->port.mctrl);
 	spin_unlock_irqrestore(&up->port.lock, flags);
-	tty_termios_encode_baud_rate(termios, baud, baud);
+
+	/* Don't rewrite B0 */
+	if (tty_termios_baud_rate(termios))
+		tty_termios_encode_baud_rate(termios, baud, baud);
 }
 
 static void


More information about the minicom-devel mailing list