Open jonasmalacofilho opened 3 years ago
Actually, the bug appears to be in hidraw's documentation:
HIDIOCGFEATURE
simply calls hidraw_get_report()
^1hid_hw_raw_request()
^2raw_request()
^3usbhid_get_raw_report()
^4It is possible that other types of HIDs behave differently, but that would still mean a bug in the kernel (in that case, in the actual code, not just in the documentation).
Leaving this open until I report (or maybe fix) it upstream.
When looking into libusb/hidapi#229, I noticed that the behavior of
hid_get_feature_report
when report IDs are not used is not as clear as I thought, and perhaps not even well defined.This doesn't currently affect any of our drivers, but it's different than the expectations that are documented in
HidapiDevice.get_feature_report
(and asserted intest_gets_feature_report
).For now, let's just follow how this is resolved in hidapi, and proceed from there.
Additional information about the system:
Related: libusb/hidapi#229 Related: libusb/hidapi#232