USB HID does not support Set_Idle
commit68735b6c0cd2fe82ddd8fd3328a261017e67d1aa
authorKevin O'Connor <kevin@koconnor.net>
Sat, 13 Feb 2010 23:32:17 +0000 (13 18:32 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Feb 2010 21:32:16 +0000 (19 15:32 -0600)
tree6e4ac17b5500ecf401968dc0d2eb3ed0a9e42788
parent4dca4b639cb20fee38f6eec0a391aecc0ad8848d
USB HID does not support Set_Idle

I found that the QEMU USB keyboard support does not work properly with
the Set_Idle command.  Once a non-zero value is given to Set_Idle,
then the keyboard reports an event on every poll - not based on the
time issued in the Set_Idle command.

I changed the code (see patch below) and it works for me.  I'm not
that familiar with the qemu internals, so I'm not sure if this is the
best way to implement this feature.

-Kevin

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/usb-hid.c