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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to