Date: Thu, 11 Mar 2010 21:42:09 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205029 - head/sys/dev/usb/serial Message-ID: <201003112142.o2BLg975056273@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Thu Mar 11 21:42:09 2010 New Revision: 205029 URL: http://svn.freebsd.org/changeset/base/205029 Log: Use wMaxPacketSize for the uftdi input buffer size. Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/serial/uftdi.c Modified: head/sys/dev/usb/serial/uftdi.c ============================================================================== --- head/sys/dev/usb/serial/uftdi.c Thu Mar 11 21:16:54 2010 (r205028) +++ head/sys/dev/usb/serial/uftdi.c Thu Mar 11 21:42:09 2010 (r205029) @@ -84,8 +84,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 */ @@ -166,7 +164,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, },
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003112142.o2BLg975056273>