Re: Reading I2C HID descriptor from userland

2022-08-20 Thread Emmanuel Dreyfus
On Sat, Aug 20, 2022 at 09:24:47AM -0700, Jason Thorpe wrote: > What does the ihidev driver think the descriptor address is? I.e. what?s the > result of the _DSM evaluation? ihidev thinks it should be 1. But both values get wrong data. Trying from userland, I fear I get some random kernel

Re: Reading I2C HID descriptor from userland

2022-08-20 Thread Jason Thorpe
See responses further down in-line: > On Aug 20, 2022, at 8:51 AM, Emmanuel Dreyfus wrote: > > Hello > > I have a ihidev device that fails to find its HID descriptor. In order to > debug that, I try to retreive it from userspace. > > At kernel boot, I have: > ihidev1 at iic2 addr 0x5d > > I

Reading I2C HID descriptor from userland

2022-08-20 Thread Emmanuel Dreyfus
Hello I have a ihidev device that fails to find its HID descriptor. In order to debug that, I try to retreive it from userspace. At kernel boot, I have: ihidev1 at iic2 addr 0x5d I try the code at the end of this message, inspired from sys/dec/i2c/ihidev.c. I am supposed to find the HID