8139too suspend fix, maybe.
PATCH 1/1 8139too suspend fix, maybe.
I'm currently trying to get my Fujitsu Lifebook P2120 laptop to suspend/resume successfully, and the first stumbling block I've come across with a plain Linus bk tree is that while the 8139too driver is up and running, the kernel thread it starts doesn't suspend. The attatched patch fixes this; I have no idea if this is correct, but it works.
Getting the radeonfb to resume is the next problem . . .
Simon
Signature · 4 lines
PGP public key Id 0x144A991C, or http://himi.org/stuff/himi.asc (crappy) Homepage: http://himi.org doe #237 (see http://www.lemuria.org/DeCSS) My DeCSS mirror: ftp://himi.org/pub/mirrors/css/
===== drivers/net/8139too.c 1.57 vs edited =====
drivers/net/8139too.c +3 -0
@@ -109,6 +109,7 @@#include <linux/ethtool.h> #include <linux/mii.h> #include <linux/completion.h> +#include <linux/suspend.h> #include <linux/crc32.h> #include <asm/io.h> #include <asm/uaccess.h>
@@ -1597,6 +1598,8 @@ timeout = next_tick;do { timeout =interruptible_sleep_on_timeout (&tp->thr_wait, timeout); +if (current->flags &PF_FREEZE ) +refrigerator (PF_IOTHREAD ); }while (!signal_pending (current) && (timeout >0 ));if (signal_pending (current)) {
Quoted 2 lines · Simon Fowler
Getting the radeonfb to resume is the next problem . . .
See the acpi mailing list archives for someone who has solved that.
Good luck,
greg k-h