Backport of psmouse suspend/shutdown cleanups
commit752dae420e55ca2498756e3655eabf741afa4968
authorThomas Renninger <trenn@suse.de>
Thu, 22 Feb 2007 12:52:40 +0000 (22 13:52 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:28 +0000 (9 10:50 -0800)
treefccd3a7887021b747d74e0e0bf065a0008645366
parent252878df90c4b41d612f3e9170c7a691a393ab3a
Backport of psmouse suspend/shutdown cleanups

This patch works back to 2.6.17 (earlier kernels seem to
need up/down operations on mutex/semaphore).

psmouse - properly reset mouse on shutdown/suspend

Some people report that they need psmouse module unloaded
for suspend to ram/disk to work properly. Let's make port
cleanup behave the same way as driver unload.

This fixes "bad state" problem on various HP laptops, such
as nx7400.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse.h
drivers/input/mouse/synaptics.c