Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2020 19:57:43 +0000 (UTC)
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358892 - head/sys/dev/usb/input
Message-ID:  <202003111957.02BJvhWY078993@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,
 	},
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003111957.02BJvhWY078993>