Re: [PATCH 1/3] UEAGLE : be suspend friendly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

You marked all the patches as 1/3, btw.

> 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 <[email protected]>
> 
> 

> 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 <[email protected]>
> Index: linux/drivers/usb/atm/ueagle-atm.c
> ===================================================================
> --- linux.orig/drivers/usb/atm/ueagle-atm.c	2006-09-22 21:39:56.000000000 +0200
> +++ linux/drivers/usb/atm/ueagle-atm.c	2006-09-22 21:40:45.000000000 +0200
> @@ -1177,6 +1177,9 @@
>  			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");

Plug/unplug should be easy enough to simulate from usb driver, no?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux