svn commit: r206310 - stable/8/sys/dev/usb/serial
Andrew Thompson
thompsa at FreeBSD.org
Tue Apr 6 23:24:30 UTC 2010
Author: thompsa
Date: Tue Apr 6 23:24:29 2010
New Revision: 206310
URL: http://svn.freebsd.org/changeset/base/206310
Log:
MFC r205029
Use wMaxPacketSize for the uftdi input buffer size.
Submitted by: Hans Petter Selasky
Modified:
stable/8/sys/dev/usb/serial/uftdi.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/dev/usb/serial/uftdi.c
==============================================================================
--- stable/8/sys/dev/usb/serial/uftdi.c Tue Apr 6 23:24:07 2010 (r206309)
+++ stable/8/sys/dev/usb/serial/uftdi.c Tue Apr 6 23:24:29 2010 (r206310)
@@ -91,8 +91,6 @@ SYSCTL_INT(_hw_usb_uftdi, OID_AUTO, debu
#define UFTDI_CONFIG_INDEX 0
#define UFTDI_IFACE_INDEX 0
-#define UFTDI_IBUFSIZE 64 /* bytes, maximum number of bytes per
- * frame */
#define UFTDI_OBUFSIZE 64 /* bytes, cannot be increased due to
* do size encoding */
@@ -173,7 +171,7 @@ static const struct usb_config uftdi_con
.type = UE_BULK,
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_IN,
- .bufsize = UFTDI_IBUFSIZE,
+ .bufsize = 0, /* use wMaxPacketSize */
.flags = {.pipe_bof = 1,.short_xfer_ok = 1,},
.callback = &uftdi_read_callback,
},
More information about the svn-src-stable-8
mailing list