From: simon@himi.org (Simon Fowler)
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: jgarzik@pobox.com
Subject: [PATCH] 8139too suspend fix, maybe.
Date: Thu, 3 Jul 2003 15:05:15 +1000 [thread overview]
Message-ID: <20030703050515.GH4359@himi.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 626 bytes --]
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
--
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/
[-- Attachment #1.2: 8139too-suspend.patch --]
[-- Type: text/plain, Size: 674 bytes --]
===== drivers/net/8139too.c 1.57 vs edited =====
--- 1.57/drivers/net/8139too.c Thu May 29 14:03:45 2003
+++ edited/drivers/net/8139too.c Thu Jul 3 14:46:38 2003
@@ -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)) {
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2003-07-03 4:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-03 5:05 Simon Fowler [this message]
2003-07-03 5:27 ` [PATCH] 8139too suspend fix, maybe Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030703050515.GH4359@himi.org \
--to=simon@himi.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox