UEAGLE : be suspend friendly
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>
This commit is contained in:
parent
8442ae00d4
commit
9ca5346483
1 changed files with 3 additions and 0 deletions
|
@ -1173,6 +1173,9 @@ static int uea_kthread(void *data)
|
||||||
ret = uea_stat(sc);
|
ret = uea_stat(sc);
|
||||||
if (ret != -EAGAIN)
|
if (ret != -EAGAIN)
|
||||||
msleep(1000);
|
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));
|
uea_leaves(INS_TO_USBDEV(sc));
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue