On Wed, Aug 12, 2020 at 05:21:49PM +0200, Michael Trimarchi wrote: > Linux need to fill up the hid descriptor in order to let > the driver be emulated. This patch was tested on top of > qemu 4.2.0 and recent linux kernel. > > modprobe wacom.ko > evtest tool > > Signed-off-by: Michael Trimarchi <mich...@amarulasolutions.com> > --- > hw/usb/dev-wacom.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 70 insertions(+) > > diff --git a/hw/usb/dev-wacom.c b/hw/usb/dev-wacom.c > index 8aba44b8bc..fe95699672 100644 > --- a/hw/usb/dev-wacom.c > +++ b/hw/usb/dev-wacom.c > @@ -259,6 +259,64 @@ static void usb_wacom_handle_reset(USBDevice *dev) > s->mode = WACOM_MODE_HID; > } > > +static const uint8_t qemu_wacom_hid_report_descriptor[] = { > + 0x05, 0x01, > + 0x09, 0x02,
Where does this come from? Created from scratch? Copied from real wacom tablet? Any chance this can get descriptive comments like the other report descriptors (see dev-hid.c)? thanks, Gerd