Skip to content

Commit

Permalink
UEAGLE : be suspend friendly
Browse files Browse the repository at this point in the history
this patch avoid that the kernel thread block the suspend process.
Some work is still need to recover after a resume.

Signed-off-by: Matthieu Castet <castet.matthieu@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
matthieu castet authored and Greg Kroah-Hartman committed Oct 17, 2006
1 parent 8442ae0 commit 9ca5346
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/atm/ueagle-atm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ static int uea_kthread(void *data)
ret = uea_stat(sc);
if (ret != -EAGAIN)
msleep(1000);
if (try_to_freeze())
uea_err(INS_TO_USBDEV(sc), "suspend/resume not supported, "
"please unplug/replug your modem\n");
}
uea_leaves(INS_TO_USBDEV(sc));
return ret;
Expand Down

0 comments on commit 9ca5346

Please sign in to comment.