I have a buggy USB HID device (APC SmartUPS) in which the designers
forgot that ReportCount is a global item. Consequently, according to the report descriptor, several reports have multiple copies of the same usage in each field. When you actually query the device, however, only a single copy of the usage is returned. hid-core catches the expected vs. actual length mismatch and fails the transfer. This effectively makes the buggy reports inaccessible even though enough data is present to populate one usage (which is all userspace wants anyway). This patch changes hid-core to only warn (if debug is enabled) on such reports rather than failing the transfer. Signed-off-by:Adam Kropelin <akropel1@rochester.rr.com> Signed-off-by:
Vojtech Pavlik <vojtech@suse.cz>
Showing
Please register or sign in to comment