From: Stephen Hemminger <shemminger@vyatta.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: netdev@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>,
Jeff Garzik <jeff@garzik.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
LKML <linux-kernel@vger.kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
"Brandeburg, Jesse" <jesse.brandeburg@intel.com>,
Stephen Hemminger <stephen.hemminger@vyatta.com>
Subject: Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
Date: Thu, 14 Aug 2008 15:23:18 -0700 [thread overview]
Message-ID: <20080814152318.625f8609@extreme> (raw)
In-Reply-To: <200808142338.18361.rjw@sisk.pl>
On Thu, 14 Aug 2008 23:38:17 +0200
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> Adapt the sky2 driver to the reworked PCI PM
>
> * Use device_set_wakeup_enable() and friends as needed
> * Remove an open-coded reference to the standard PCI PM registers
> * Use pci_prepare_to_sleep() and pci_back_from_sleep() in the
> ->suspend() and ->resume() callbacks
> * Use the observation that it is sufficient to call pci_enable_wake()
> once, unless it fails
>
> Tested on Asus M3A32-MVP (Yukon-2 EC Ultra rev 3).
>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
> drivers/net/sky2.c | 34 ++++++++++------------------------
> 1 file changed, 10 insertions(+), 24 deletions(-)
>
> Index: linux-2.6/drivers/net/sky2.c
> ===================================================================
> --- linux-2.6.orig/drivers/net/sky2.c
> +++ linux-2.6/drivers/net/sky2.c
> @@ -3035,7 +3035,8 @@ static int sky2_set_wol(struct net_devic
> struct sky2_port *sky2 = netdev_priv(dev);
> struct sky2_hw *hw = sky2->hw;
>
> - if (wol->wolopts & ~sky2_wol_supported(sky2->hw))
> + if ((wol->wolopts & ~sky2_wol_supported(sky2->hw))
> + || !device_can_wakeup(&hw->pdev->dev))
> return -EOPNOTSUPP;
>
There was a regression in earlier releases caused because some BIOS's
are wrong, and device can wakeup.
next prev parent reply other threads:[~2008-08-14 22:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 21:35 [PATCH 0/3] Adapt three network drivers to the reworked PCI PM Rafael J. Wysocki
2008-08-14 21:37 ` [PATCH 1/3] Adapt the skge driver " Rafael J. Wysocki
2008-08-14 21:37 ` Rafael J. Wysocki
2008-08-14 21:38 ` [PATCH 2/3] Adapt the sky2 " Rafael J. Wysocki
2008-08-14 22:23 ` Stephen Hemminger [this message]
2008-08-15 13:01 ` Rafael J. Wysocki
2008-08-15 13:07 ` Rafael J. Wysocki
2008-08-15 13:07 ` Rafael J. Wysocki
2008-08-15 13:32 ` Rafael J. Wysocki
2008-08-15 16:15 ` Stephen Hemminger
2008-08-15 16:15 ` Stephen Hemminger
2008-08-15 13:32 ` Rafael J. Wysocki
2008-08-15 13:01 ` Rafael J. Wysocki
2008-08-14 22:23 ` Stephen Hemminger
2008-08-14 21:38 ` Rafael J. Wysocki
2008-08-14 21:40 ` [PATCH 3/3] Adapt the e100 " Rafael J. Wysocki
2008-08-14 23:56 ` Jeff Kirsher
2008-08-14 23:56 ` Jeff Kirsher
2008-08-14 21:40 ` Rafael J. Wysocki
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=20080814152318.625f8609@extreme \
--to=shemminger@vyatta.com \
--cc=akpm@linux-foundation.org \
--cc=jbarnes@virtuousgeek.org \
--cc=jeff@garzik.org \
--cc=jesse.brandeburg@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=stephen.hemminger@vyatta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.