Page MenuHomeFreeBSD

hid: Add child device parameter to HID methods
ClosedPublic

Authored by wulf on Jul 31 2023, 2:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 1 2024, 9:10 AM
Unknown Object (File)
May 1 2024, 9:10 AM
Unknown Object (File)
May 1 2024, 9:10 AM
Unknown Object (File)
May 1 2024, 1:03 AM
Unknown Object (File)
Apr 20 2024, 7:37 PM
Unknown Object (File)
Mar 17 2024, 4:29 PM
Unknown Object (File)
Jan 12 2024, 6:09 AM
Unknown Object (File)
Dec 23 2023, 3:40 AM

Details

Summary

Some devices like Apple HID-over-SPI may contain more than one report
descriptors necessitating creation of multiple hidbus children.
Add indentificator of child devices to distinct them.
No functional changes intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Jul 31 2023, 2:55 PM
wulf created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Aug 3 2023, 4:12 PM
This revision was automatically updated to reflect the committed changes.

It was committed on Thu Aug 3 19:10:50 2023 +0300 as 4b1712817e56840acc5e9fd59028ef79007ff579. There is no info about MFC, but this change seems to be silencing multiple messages seen in dmesg[1]. While these messages are irrelevant to HID functionality, after MFC we will get rid of them

[22] hid_get_item: HID_ITEM_MAXUSAGE should be increased up to 16 to parse the HID report descriptor
[22] hid_get_item: HID_ITEM_MAXUSAGE should be increased up to 16 to parse the HID report descriptor
[22] hid_get_item: HID_ITEM_MAXUSAGE should be increased up to 16 to parse the HID report descriptor
[22] hid_get_item: HID_ITEM_MAXUSAGE should be increased up to 16 to parse the HID report descriptor
...

Cherry-picking leads to CONFLICT (content): Merge conflict in sys/dev/hid/hidbus.c. So more MFCs are required, and it will probably break ABI. Please ignore my previous comment then.