diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-03-11 21:42:09 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-03-11 21:42:09 +0000 |
commit | 8817f299010dff477b0d6cbf268c4111145a7759 (patch) | |
tree | 01e97dff7df637aee1318673e1ab44a8fd2101d2 /sys | |
parent | da10e7e2d62e5b54300d8373fdc1553befd681de (diff) | |
download | src-8817f299010dff477b0d6cbf268c4111145a7759.tar.gz src-8817f299010dff477b0d6cbf268c4111145a7759.zip |
Use wMaxPacketSize for the uftdi input buffer size.
Submitted by: Hans Petter Selasky
Notes
Notes:
svn path=/head/; revision=205029
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/serial/uftdi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/serial/uftdi.c b/sys/dev/usb/serial/uftdi.c index e7186abfddba..76a08de30a04 100644 --- a/sys/dev/usb/serial/uftdi.c +++ b/sys/dev/usb/serial/uftdi.c @@ -84,8 +84,6 @@ SYSCTL_INT(_hw_usb_uftdi, OID_AUTO, debug, CTLFLAG_RW, #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_config[UFTDI_N_TRANSFER] = { .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, }, |