Commit 9b1bb2cd authored by Russell King's avatar Russell King Committed by Chris Wright

[PATCH] SERIAL: Fix resume handling bug

Unfortunately, pcmcia_dev_present() returns false when a device is
suspended, so checking this on resume does not work too well.  Omit
this test.

the backported patch below is already in fedora tree. -maks
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarmaximilian attems <maks@sternwelten.at>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent 3d8565de
...@@ -185,14 +185,12 @@ static int serial_suspend(struct pcmcia_device *link) ...@@ -185,14 +185,12 @@ static int serial_suspend(struct pcmcia_device *link)
static int serial_resume(struct pcmcia_device *link) static int serial_resume(struct pcmcia_device *link)
{ {
if (pcmcia_dev_present(link)) { struct serial_info *info = link->priv;
struct serial_info *info = link->priv; int i;
int i;
for (i = 0; i < info->ndev; i++) for (i = 0; i < info->ndev; i++)
serial8250_resume_port(info->line[i]); serial8250_resume_port(info->line[i]);
wakeup_card(info); wakeup_card(info);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment