Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2004 22:40:45 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Marcel Moolenaar <marcel@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/uart uart_subr.c 
Message-ID:  <57113.1100468445@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 14 Nov 2004 21:38:22 GMT." <200411142138.iAELcM5h018562@repoman.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200411142138.iAELcM5h018562@repoman.freebsd.org>, Marcel Moolenaar 
writes:
>marcel      2004-11-14 21:38:22 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/dev/uart         uart_subr.c 
>  Log:
>  Make sure the baudrate specified with the BR tag is somewhat sane.
>  A baudrate we consider insane is silently replaced with 0. When the
>  baudrate is 0, we will not try to program the hardware. Instead we
>  leave the communication speed unaltered, maximizing the chance to
>  have a working console. Obviously this means we allow specifying a
>  0 baudrate for exactly that purpose.

Setting a zero speed used to have magic meaning, sometimes sending
a break, on other systems it would hang up the line.  Overloading
with yet a meaning may not be a good idea.  (I'm not sure what
the standards demand btw).

How about using -1 instead ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57113.1100468445>