提交 9ca53464 编写于 作者: M matthieu castet 提交者: Greg Kroah-Hartman

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: NMatthieu Castet <castet.matthieu@free.fr>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 8442ae00
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册