usb/101775: [libusbhid] [patch] possible error in report descriptor parsing

Rene Ladan r.c.ladan at gmail.com
Sun Sep 24 12:50:24 PDT 2006


The following reply was made to PR usb/101775; it has been noted by GNATS.

From: Rene Ladan <r.c.ladan at gmail.com>
To: bug-followup at FreeBSD.org,  amdmi3 at mail.ru
Cc:  
Subject: Re: usb/101775: [libusbhid] [patch] possible error in report descriptor
 parsing
Date: Sun, 24 Sep 2006 21:43:32 +0200

 I saw this error too (it is an error, see section 6.2.2.7, page 35, of
 the USB HID 1.11 specification), but fixing this gave a physical minimum
 of 32768 (no minus sign) instead of -32768 (with minus sign) for
 "Generic_Desktop.{Rx,Ry,X,Y}" when plugging in an Xbox 360 controller.
 
 /usr/src/sys/dev/usb/uxb360gp_rdesc.h (RELENG_6) shows (line 110):
 
  0x36, 0x00, 0x80,   /*  PHYSICAL MINIMUM (-32768)           */
 
 so -32768 (with minus sign) is the correct value.  I could not see any
 sign error in the sources of libusbhid or usbhidctl though.
 
 Any clues?
 
 Regards,
 Rene
 -- 
 GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
 (subkeys.pgp.net)
 
 "It won't fit on the line."
 		-- me, 2001
 


More information about the freebsd-usb mailing list