]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: xen-kbdfront - fix mouse getting stuck after save/restore
authorIgor Mammedov <imammedo@redhat.com>
Mon, 18 Apr 2011 17:17:17 +0000 (10:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:54:55 +0000 (15:54 -0700)
commit5a6e9f036828d83e30e30b5a83b637247f45e2bb
treec7d427f457e7b9c48f9d129c480b0233442a9e0e
parent5dd27a4cb323fbfc6773107cf3325651d26e255f
Input: xen-kbdfront - fix mouse getting stuck after save/restore

commit c36b58e8a9112017c2bcc322cc98e71241814303 upstream.

Mouse gets "stuck" after restore of PV guest but buttons are in working
condition.

If driver has been configured for ABS coordinates at start it will get
XENKBD_TYPE_POS events and then suddenly after restore it'll start getting
XENKBD_TYPE_MOTION events, that will be dropped later and they won't get
into user-space.

Regression was introduced by hunk 5 and 6 of
5ea5254aa0ad269cfbd2875c973ef25ab5b5e9db
("Input: xen-kbdfront - advertise either absolute or relative
coordinates").

Driver on restore should ask xen for request-abs-pointer again if it is
available. So restore parts that did it before 5ea5254.

Acked-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
[v1: Expanded the commit description]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/xen-kbdfront.c