From: Dmitry Torokhov Date: Tue, 17 May 2005 04:53:04 +0000 (-0700) Subject: [PATCH] serio resume fix X-Git-Tag: v3.12-rc1~43151^2~268 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c3f2be423dafb9f914afe85e532e3fffd502fde;p=kernel%2Fkernel-generic.git [PATCH] serio resume fix 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 Cc: Vojtech Pavlik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 3313e2d..b28ea33 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c @@ -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.