svn commit: r358892 - head/sys/dev/usb/input
Vladimir Kondratyev
wulf at FreeBSD.org
Wed Mar 11 19:57:44 UTC 2020
Author: wulf
Date: Wed Mar 11 19:57:43 2020
New Revision: 358892
URL: https://svnweb.freebsd.org/changeset/base/358892
Log:
wmt(4): revert r358872 (by hselasky)
Limiting frame size to maximum packet size breaks devices which have input
report size larger than wMaxPacketSize. Maximal input report size should be
used instead.
Revert the commit as it have not been MFC-ed yet.
Discussed with: hselasky
Modified:
head/sys/dev/usb/input/wmt.c
Modified: head/sys/dev/usb/input/wmt.c
==============================================================================
--- head/sys/dev/usb/input/wmt.c Wed Mar 11 18:15:18 2020 (r358891)
+++ head/sys/dev/usb/input/wmt.c Wed Mar 11 19:57:43 2020 (r358892)
@@ -251,7 +251,7 @@ static const struct usb_config wmt_config[WMT_N_TRANSF
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_IN,
.flags = { .pipe_bof = 1, .short_xfer_ok = 1 },
- .bufsize = 0, /* use wMaxPacketSize */
+ .bufsize = WMT_BSIZE,
.callback = &wmt_intr_callback,
},
};
More information about the svn-src-head
mailing list