usb/149675: uftdi doesn't react to break properly
Ed Schouten
ed at 80386.nl
Sun Aug 15 16:10:05 UTC 2010
The following reply was made to PR usb/149675; it has been noted by GNATS.
From: Ed Schouten <ed at 80386.nl>
To: bug-followup at FreeBSD.org, prt at prt.org, hselasky at c2i.net
Cc:
Subject: Re: usb/149675: uftdi doesn't react to break properly
Date: Sun, 15 Aug 2010 18:02:40 +0200
--wr1Q/2bz0MCWWNYv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hans, Paul,
I just looked at the usb_serial.c source code and it seems break/parity
conditions are never propagated to the TTY layer:
if (ttydisc_rint(tp, buf[cnt], 0) =3D=3D -1) {
The third argument is supposed to be a bitmask of TRE_FRAMING,
TRE_PARITY, TRE_OVERRUN and TRE_BREAK, to indicate the type of
transmission error/condition.
This is why breaks are probably just received as zero-bytes.
--=20
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
--wr1Q/2bz0MCWWNYv
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)
iEYEARECAAYFAkxoD6AACgkQ52SDGA2eCwWfegCeLUhVFlBv4Khtv99m2XHXsqqI
GpwAn2wJturYMHd40W+kVGafw8Pkv2iu
=Rmbv
-----END PGP SIGNATURE-----
--wr1Q/2bz0MCWWNYv--
More information about the freebsd-usb
mailing list