Page MenuHomeFreeBSD

hid: bump HID_ITEM_MAXUSAGES to 8
ClosedPublic

Authored by imp on Feb 8 2021, 7:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 30, 11:09 AM
Unknown Object (File)
Sun, Jun 21, 5:02 PM
Unknown Object (File)
Thu, Jun 18, 8:28 PM
Unknown Object (File)
Fri, Jun 5, 3:33 AM
Unknown Object (File)
May 28 2026, 4:40 AM
Unknown Object (File)
May 19 2026, 2:49 AM
Unknown Object (File)
May 14 2026, 6:27 AM
Unknown Object (File)
May 13 2026, 11:45 AM
Subscribers
None

Details

Summary

My YOGA requires a minimum of 7 to parse w/o an error. Since the memory
savings are trivial and the yoga a popular system, bump the default
up to 8. There's no API/ABI issues in doing this. This hid_item
struct isn't exported to userland and the one libusbhid has is
different and only shares a name...

MFC After: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36813
Build 33702: arc lint + arc unit

Event Timeline

imp requested review of this revision.Feb 8 2021, 7:37 PM
imp created this revision.
imp added a reviewer: wulf.

Could you share the HID report descriptor of your device?

This revision is now accepted and ready to land.Feb 8 2021, 9:42 PM
In D28543#638950, @wulf wrote:

Could you share the HID report descriptor of your device?

How do I do that?

This revision was automatically updated to reflect the committed changes.
In D28543#638978, @imp wrote:
In D28543#638950, @wulf wrote:

Could you share the HID report descriptor of your device?

How do I do that?

# kldload hidraw.ko
# usbhidctl -f /dev/hidraw# -r

Ouch, I forgot that usbhidctl is unable nor properly parse such a descriptor nor do a raw dump. So no easy way right now, rebuilding of kernel with debug options enabled is required. Just forget.