I'm looking for some guidance on how to send a USB HID Gadget's Feature Report.
This looks like a solution for me, but I can't figure out how to make it work:
How to send feature-report to the HOST_PC via Linux USB_GADGET
How is this patch implemented/used? Can someone more familiar with kernel driver/configfs stuff point me in the right direction?
I have the exact same scenario as the linked question, and need a HID gadget device to reply to a host's feature report request. Third party app polls the firmware version info using the report, so I need to reply to make it happy and think it's the original hardware.
I've already recompiled my kernel with the patched f_hid.c driver file from the link, however I don't see how/where I can populate the reports data. I'm a code novice, but it looks like I should see configfs files/attributes. I don't get any new configfs files under the gadget's instance though.