Skip to content

Commit

Permalink
[SERIAL] Fix resume handling bug
Browse files Browse the repository at this point in the history
Unfortunately, pcmcia_dev_present() returns false when a device is
suspended, so checking this on resume does not work too well.  Omit
this test.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Oct 1, 2006
1 parent bcf5111 commit fe59d53
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions drivers/serial/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,14 @@ static int serial_suspend(struct pcmcia_device *link)

static int serial_resume(struct pcmcia_device *link)
{
if (pcmcia_dev_present(link)) {
struct serial_info *info = link->priv;
int i;
struct serial_info *info = link->priv;
int i;

for (i = 0; i < info->ndev; i++)
serial8250_resume_port(info->line[i]);
for (i = 0; i < info->ndev; i++)
serial8250_resume_port(info->line[i]);

if (info->quirk && info->quirk->wakeup)
info->quirk->wakeup(link);
}
if (info->quirk && info->quirk->wakeup)
info->quirk->wakeup(link);

return 0;
}
Expand Down

0 comments on commit fe59d53

Please sign in to comment.