From: Pavel Machek <pavel@suse.cz>
To: Alexander Gran <alex@zodiac.dnsalias.org>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] Enable suspend/resuming of e1000
Date: Tue, 1 Jun 2004 14:50:08 +0200 [thread overview]
Message-ID: <20040601125008.GE10233@elf.ucw.cz> (raw)
In-Reply-To: <200405281404.10538@zodiac.zodiac.dnsalias.org>
Hi!
> suspending of the e1000 in my Thinkpad did not work, so I jst started some
> hacking. The attached patch does the trick for me, it just disables/enables
> the device. I used 2.6.7-rc1-mm1, but it should apply to rc1 also. If it's
> correct (Hey, I'm just beginning..), it could perhaps be
> applied to mainline / mm?
> --- linux-2.6.7-rc1-ag1/drivers/net/e1000/e1000_main.c 2004-05-26 23:25:40.000000000 +0200
> +++ linux-2.6.7-rc1-mm1/drivers/net/e1000/e1000_main.c 2004-05-27 23:53:54.000000000 +0200
> @@ -2864,6 +2864,8 @@
> }
> }
>
> + pci_disable_device(pdev);
> +
> state = (state > 0) ? 3 : 0;
> pci_set_power_state(pdev, state);
>
> @@ -2874,6 +2876,8 @@
> static int
> e1000_resume(struct pci_dev *pdev)
> {
> + pci_enable_device(pdev);
> +
> struct net_device *netdev = pci_get_drvdata(pdev);
> struct e1000_adapter *adapter = netdev->priv;
> uint32_t manc;
Whitespace damage here (tabs vs. spaces) plus you really should not
call procedure before variable declarations. Otherwise looks good.
Pavel
--
934a471f20d6580d5aad759bf0d97ddc
next prev parent reply other threads:[~2004-06-01 12:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 12:04 Alexander Gran
2004-06-01 12:50 ` Pavel Machek [this message]
2004-06-01 13:04 ` Alexander Gran
2004-06-01 13:24 ` Pavel Machek
2004-06-01 13:41 ` Alexander Gran
2004-06-01 13:50 ` Pavel Machek
2004-06-01 13:54 ` Alexander Gran
2004-06-01 16:03 ` Pavel Machek
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=20040601125008.GE10233@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=akpm@osdl.org \
--cc=alex@zodiac.dnsalias.org \
--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
all inboxes | Powered by JetHome®