Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2019 03:51:27 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351967 - head/sys/dev/usb
Message-ID:  <201909070351.x873pRQU065709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Sep  7 03:51:26 2019
New Revision: 351967
URL: https://svnweb.freebsd.org/changeset/base/351967

Log:
  Some newer HID devices have descriptors that are larger than 1k. Bump
  this to 2k to prevent them from being truncated and ignored. It
  appears to be a sanity check only, but bumping it to 2k allows both of
  my iic hid devices to be parsed and the second one to work...

Modified:
  head/sys/dev/usb/usb_hid.c

Modified: head/sys/dev/usb/usb_hid.c
==============================================================================
--- head/sys/dev/usb/usb_hid.c	Fri Sep  6 21:53:04 2019	(r351966)
+++ head/sys/dev/usb/usb_hid.c	Sat Sep  7 03:51:26 2019	(r351967)
@@ -74,7 +74,7 @@ static uint8_t hid_get_byte(struct hid_data *s, const 
 #define	MAXUSAGE 64
 #define	MAXPUSH 4
 #define	MAXID 16
-#define	MAXLOCCNT 1024
+#define	MAXLOCCNT 2048
 
 struct hid_pos_data {
 	int32_t rid;



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