Skip to content

Commit

Permalink
[PATCH] serio resume fix
Browse files Browse the repository at this point in the history
serio - do not attempt to immediately disconnect port if resume failed, let
kseriod take care of it.  Otherwise we may attempt to unregister associated
input devices which will generate hotplug events which are not handled well
during swsusp.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Dmitry Torokhov authored and Linus Torvalds committed May 17, 2005
1 parent 1352556 commit 0c3f2be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/serio/serio.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ static int serio_resume(struct device *dev)
struct serio *serio = to_serio_port(dev);

if (!serio->drv || !serio->drv->reconnect || serio->drv->reconnect(serio)) {
serio_disconnect_port(serio);
/*
* Driver re-probing can take a while, so better let kseriod
* deal with it.
Expand Down

0 comments on commit 0c3f2be

Please sign in to comment.