Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2010 16:10:05 GMT
From:      Ed Schouten <ed@80386.nl>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: usb/149675: uftdi doesn't react to break properly
Message-ID:  <201008151610.o7FGA5rE008529@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/149675; it has been noted by GNATS.

From: Ed Schouten <ed@80386.nl>
To: bug-followup@FreeBSD.org, prt@prt.org, hselasky@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@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--



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