NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46391



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

From: Kooda <kooda%upyum.com@localhost>
To: Nat Sloss <nathanialsloss%yahoo.com.au@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: kern/46391
Date: Sun, 26 Aug 2012 22:05:05 +0200

 --cWoXeonUoKmBZSoM
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 Hello,
 
 usbhidctl does report 13:0x20, but changing the matching test doesnâ??t fix
 the problem. Perhaps Iâ??m missing something, here is what I did:
 
 
 --cWoXeonUoKmBZSoM
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch
 
 --- ums.c.orig  2012-08-26 12:32:23.000000000 +0200
 +++ ums.c       2012-08-26 21:55:41.000000000 +0200
 @@ -163,7 +163,9 @@
             !hid_is_collection(desc, size, uha->reportid,
                                HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_POINTER)) &&
             !hid_is_collection(desc, size, uha->reportid,
 -                               HID_USAGE2(HUP_DIGITIZERS, 0x0002)))
 +                               HID_USAGE2(HUP_DIGITIZERS, 0x0002)) &&
 +           !hid_is_collection(desc, size, uha->reportid,
 +                               HID_USAGE2(HUP_DIGITIZERS, 0x0020)))
                 return (UMATCH_NONE);
 
         return (UMATCH_IFACECLASS);
 @@ -198,7 +200,9 @@
         uhidev_get_report_desc(uha->parent, &desc, &size);
 
         isdigitizer = hid_is_collection(desc, size, uha->reportid,
 -           HID_USAGE2(HUP_DIGITIZERS, 0x0002));
 +           HID_USAGE2(HUP_DIGITIZERS, 0x0002)) ||
 +           hid_is_collection(desc, size, uha->reportid,
 +           HID_USAGE2(HUP_DIGITIZERS, 0x0020));
 
         if (!pmf_device_register(self, NULL, NULL))
                 aprint_error_dev(self, "couldn't establish power handler\n");
 
 --cWoXeonUoKmBZSoM--
 


Home | Main Index | Thread Index | Old Index