Page MenuHomeFreeBSD

wmt(4): Add PNP metadata
ClosedPublic

Authored by wulf on Oct 24 2018, 6:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 1:59 AM
Unknown Object (File)
Mar 25 2024, 5:19 AM
Unknown Object (File)
Feb 12 2024, 3:36 AM
Unknown Object (File)
Dec 20 2023, 4:13 AM
Unknown Object (File)
Dec 12 2023, 11:35 PM
Unknown Object (File)
Nov 16 2023, 5:57 PM
Unknown Object (File)
Oct 23 2023, 6:15 AM
Unknown Object (File)
Sep 17 2023, 1:00 PM
Subscribers

Details

Summary
  • Add PNP record so wmt(4) could be picked by devd/devmatch.
  • Fix uhid(4) conflict with blacklisting of multitouch HID-usages in uhid(4) probe handler.
Test Plan

Attach wmt touchscreen on GENERIC kernel after patch has been applied. It should be kldloaded and started automatically by devd.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The USB_PNP_HOST_INFO part looks good to me.

This revision is now accepted and ready to land.Oct 24 2018, 8:58 PM
sys/dev/usb/input/uhid.c
716 ↗(On Diff #49574)

If UQ_WMT_IGNORE is set you don't need to read the HID descriptor:

if (usb_test_quick(uaa, UQ_WMT_IGNORE)) {
   error = BUS_PROBE_GENERIC;
} else {

....

}

Skip HID descriptor reading if WMT_IGNORE quirk is enabled.

This revision now requires review to proceed.Oct 25 2018, 5:48 PM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 10 2018, 10:14 PM
This revision was automatically updated to reflect the committed changes.