Module Name: src Committed By: christos Date: Sun Apr 6 23:29:58 UTC 2014
Modified Files: src/sys/dev/ic: com.c Log Message: PR/48720: John Kelly: com driver does not allow B0 to be set. The code to handle B0 was commented out for no reason given at revision 1.99. POSIX mandates to hangup on B0: http://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetattr.html To generate a diff of this commit: cvs rdiff -u -r1.323 -r1.324 src/sys/dev/ic/com.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/com.c diff -u src/sys/dev/ic/com.c:1.323 src/sys/dev/ic/com.c:1.324 --- src/sys/dev/ic/com.c:1.323 Sun Mar 16 01:20:27 2014 +++ src/sys/dev/ic/com.c Sun Apr 6 19:29:58 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: com.c,v 1.323 2014/03/16 05:20:27 dholland Exp $ */ +/* $NetBSD: com.c,v 1.324 2014/04/06 23:29:58 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.323 2014/03/16 05:20:27 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.324 2014/04/06 23:29:58 christos Exp $"); #include "opt_com.h" #include "opt_ddb.h" @@ -296,11 +296,9 @@ comspeed(long speed, long frequency, int divisor = 13; } -#if 0 if (speed == 0) return (0); -#endif - if (speed <= 0) + if (speed < 0) return (-1); x = divrnd(frequency / divisor, speed); if (x <= 0) @@ -1426,9 +1424,9 @@ comparam(struct tty *tp, struct termios } sc->sc_msr_mask = sc->sc_msr_cts | sc->sc_msr_dcd; -#if 0 if (ospeed == 0) CLR(sc->sc_mcr, sc->sc_mcr_dtr); +#if 0 else SET(sc->sc_mcr, sc->sc_mcr_dtr); #endif