Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ca53464 authored by Matthieu CASTET's avatar Matthieu CASTET Committed by Greg Kroah-Hartman
Browse files

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: default avatarMatthieu Castet <castet.matthieu@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8442ae00
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;