Second attempt to resolve UHIDEV_CLAIM_MULTIPLE_REPORTID conflict, this
authoranton <anton@openbsd.org>
Wed, 10 Nov 2021 06:33:30 +0000 (06:33 +0000)
committeranton <anton@openbsd.org>
Wed, 10 Nov 2021 06:33:30 +0000 (06:33 +0000)
commited0cd979ec922c29e04a9fca992a945e51cd5e41
tree783d430fbb9f144f8f27283a0d208345a2bd3be2
parent2eee802d4d159814815bbe669a8b2c029677d590
Second attempt to resolve UHIDEV_CLAIM_MULTIPLE_REPORTID conflict, this
time without using sentinel that cannot be represented using a single
byte. Instead, use 0 as this report ID is reserved according to the USB
HID specification. Fixes attachment of some upd devices which exposes up
to 256 report IDs.

Thanks to Damien Couderc <openbsd at petrocore dot eu> for reporting and
testing.
sys/dev/usb/uhidev.c
sys/dev/usb/uhidev.h