login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
15
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
Date: Friday, August 15, 2008 - 6:07 am
On Friday, 15 of August 2008, Rafael J. Wysocki wrote:
quoted text
> On Friday, 15 of August 2008, Stephen Hemminger wrote: > > 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. > > device_can_wakeup() returns 'true' if the device is capable of generating PME# > from at least one low power state (this is determined on the basis of the > contents of the device's PCI PM registers - please have a look at > drivers/pci/pci_pm_init() for details) or if ACPI tells us it can wake up.
drivers/pci/pci.c:pci_pm_init(), sorry. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/3] Adapt three network drivers to the reworked PCI PM
, Rafael J. Wysocki
, (Thu Aug 14, 2:35 pm)
[PATCH 1/3] Adapt the skge driver to the reworked PCI PM
, Rafael J. Wysocki
, (Thu Aug 14, 2:37 pm)
[PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Rafael J. Wysocki
, (Thu Aug 14, 2:38 pm)
[PATCH 3/3] Adapt the e100 driver to the reworked PCI PM
, Rafael J. Wysocki
, (Thu Aug 14, 2:40 pm)
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Stephen Hemminger
, (Thu Aug 14, 3:23 pm)
Re: [PATCH 3/3] Adapt the e100 driver to the reworked PCI PM
, Jeff Kirsher
, (Thu Aug 14, 4:56 pm)
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Rafael J. Wysocki
, (Fri Aug 15, 6:01 am)
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Rafael J. Wysocki
, (Fri Aug 15, 6:07 am)
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Rafael J. Wysocki
, (Fri Aug 15, 6:32 am)
Re: [PATCH 2/3] Adapt the sky2 driver to the reworked PCI PM
, Stephen Hemminger
, (Fri Aug 15, 9:15 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch] e1000=y && e1000e=m regression fix
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Boaz Harrosh
how to use KBUILD_EXTRA_SYMBOLS
Brandeburg, Jesse
RE: [regression] e1000e broke e1000 (was: Re: [ANNOUNCE] e1000 toe1000e migration ...
Pekka Enberg
Re: [PATCH] include/linux/slab.h: new KFREE() macro.
git
:
Bill Lear
cpio command not found
Jing Xue
Re: git rm --cached
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Johannes Schindelin
Re: [PATCH 1/3 v2] Implement the patience diff algorithm
Johannes Sixt
Re: How to pull remote branch with specified commit id?
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Oliver Neukum
Re: [RFC] Patch to option HSO driver to the kernel
Paulius Zaleckas
Re: [RFC] Patch to option HSO driver to the kernel
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
openbsd-misc
:
Tomas Bodzar
Re: OpenSMTPd actual development and integration
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Bryan Irvine
Re: DVD burn error: No space left on device
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
[ARM] mmp: avengers lite (pxa168) board bring up
Linux Kernel Mailing List
via82cxxx: add support for VT6415 PCIE PATA IDE Host Controller
Linux Kernel Mailing List
checkpatch: warn on declaration with storage class not at the beginning
Linux Kernel Mailing List
USB: remove duplicate entry in Option driver and Pl2303 driver for Huawei modem
Colocation donated by:
Syndicate