]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
fix usb-hid emulation SET_IDLE
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Jan 2009 15:16:04 +0000 (15:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 12 Feb 2009 11:15:32 +0000 (11:15 +0000)
commit826779435e6a2907b86aba4e226f3cb85661b940
treea3a4a9a06316e96d06982d89c1f8d1698ee40cc3
parent5b55ab9960475e669aeaa626b48f6cebcbf2bdfe
fix usb-hid emulation SET_IDLE

there is a bug in the current usb-hid emulation code that affects the
way the idle flag is handled: the spec clearly states that when SET_IDLE
is called with a value == 0 means "do not send any event unless there is
an actual change". However we are currently assuming the opposite
meaning of the flag.
This patch fixes it and it also fixes a possible initialization issue
that is uncovered by using the default idle flag set to 0.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
[supplied patch also trivially changed by Ian Jackson]
(cherry picked from commit 144cb9b13bb57d40b69a5100ab4dd91d9f0036e0)
hw/usb-hid.c