From owner-freebsd-usb@FreeBSD.ORG Sun Aug 15 16:10:05 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7643E1065672 for ; Sun, 15 Aug 2010 16:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6619C8FC0A for ; Sun, 15 Aug 2010 16:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7FGA5a6008534 for ; Sun, 15 Aug 2010 16:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7FGA5rE008529; Sun, 15 Aug 2010 16:10:05 GMT (envelope-from gnats) Date: Sun, 15 Aug 2010 16:10:05 GMT Message-Id: <201008151610.o7FGA5rE008529@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ed Schouten Cc: Subject: Re: usb/149675: uftdi doesn't react to break properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 16:10:05 -0000 The following reply was made to PR usb/149675; it has been noted by GNATS. From: Ed Schouten 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 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--