From owner-freebsd-usb@FreeBSD.ORG Mon Nov 23 22:10:09 2009 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 A322D106568B for ; Mon, 23 Nov 2009 22:10:09 +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 91A158FC19 for ; Mon, 23 Nov 2009 22:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nANMA9t4063865 for ; Mon, 23 Nov 2009 22:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nANMA8cc063848; Mon, 23 Nov 2009 22:10:08 GMT (envelope-from gnats) Date: Mon, 23 Nov 2009 22:10:08 GMT Message-Id: <200911232210.nANMA8cc063848@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Corey Smith Cc: Subject: Re: usb/140810: 8.X+ uftdi copy and paste problem / tty overflow X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Corey Smith List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 22:10:09 -0000 The following reply was made to PR usb/140810; it has been noted by GNATS. From: Corey Smith To: Hans Petter Selasky Cc: "freebsd-usb@freebsd.org" , "freebsd-gnats-submit@freebsd.org" Subject: Re: usb/140810: 8.X+ uftdi copy and paste problem / tty overflow Date: Mon, 23 Nov 2009 17:04:27 -0500 On Mon, 2009-11-23 at 16:01 -0500, Hans Petter Selasky wrote: > Your issue looks like a hardware issue. Does the following patch help? > > ==== //depot/projects/usb/src/sys/dev/usb/serial/uftdi.c#16 - > src/sys/dev/usb/serial/uftdi.c ==== > @@ -165,7 +165,7 @@ > .endpoint = UE_ADDR_ANY, > .direction = UE_DIR_OUT, > .bufsize = UFTDI_OBUFSIZE, > - .flags = {.pipe_bof = 1,.force_short_xfer = 1,}, > + .flags = {.pipe_bof = 1,}, > .callback = &uftdi_write_callback, > }, > Your patch worked. FWIW: This patch also works: # diff -u sys/dev/usb/serial/uftdi.c.orig sys/dev/usb/serial/uftdi.c --- sys/dev/usb/serial/uftdi.c.orig 2009-11-23 16:48:01.000000000 -0500 +++ sys/dev/usb/serial/uftdi.c 2009-11-23 17:54:23.000000000 -0500 @@ -93,7 +93,7 @@ #define UFTDI_IBUFSIZE 64 /* bytes, maximum number of bytes per * frame */ -#define UFTDI_OBUFSIZE 64 /* bytes, cannot be increased due to +#define UFTDI_OBUFSIZE 63 /* bytes, cannot be increased due to * do size encoding */ enum { Is there a way to fix this so USB-16COM-RM will work properly in a -RELEASE again? -Corey Smith