login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
18
Re: [PATCH] net: forcedeth use pci_choose_state instead of PCI_D3hot - v2
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCH] net: forcedeth use pci_choose_state instead of PCI_D3hot - v2
Date: Monday, August 18, 2008 - 3:37 pm
On Mon, Aug 18, 2008 at 3:08 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
quoted text
> On Monday, 18 of August 2008, Yinghai Lu wrote: >> On Mon, Aug 18, 2008 at 3:22 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote: >> >> >> > > drivers/net/forcedeth.c | 8 +++++--- >> >> > > 1 file changed, 5 insertions(+), 3 deletions(-) >> >> > > >> >> > > Index: linux-2.6/drivers/net/forcedeth.c >> >> > > =================================================================== >> >> > > --- linux-2.6.orig/drivers/net/forcedeth.c >> >> > > +++ linux-2.6/drivers/net/forcedeth.c >> >> > > @@ -5975,10 +5975,12 @@ static void nv_shutdown(struct pci_dev * >> >> > > if (netif_running(dev)) >> >> > > nv_close(dev); >> >> > > >> >> > > - pci_enable_wake(pdev, PCI_D3hot, np->wolenabled); >> >> > > - pci_enable_wake(pdev, PCI_D3cold, np->wolenabled); >> >> > > pci_disable_device(pdev); >> >> > > - pci_set_power_state(pdev, PCI_D3hot); >> >> > > + if (system_state == SYSTEM_POWER_OFF) { >> >> > > + if (pci_enable_wake(pdev, PCI_D3cold, np->wolenabled)) >> >> > > + pci_enable_wake(pdev, PCI_D3hot, np->wolenabled); >> >> > > + pci_set_power_state(pdev, PCI_D3hot); >> >> > > + } >> >> > > } >> >> > > #else >> >> > > #define nv_suspend NULL >> >> > > >> >> > >> >> > Does the last patch work for you BTW? >> > >> >> it works. > > OK, thanks for testing. > > I think we can use it as a quick fix for 2.6.27. Do you agree? >
yes YH --
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] net: forcedeth use pci_choose_state instead of PCI ...
, Yinghai Lu
, (Sat Aug 16, 11:25 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Sun Aug 17, 6:02 am)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Sun Aug 17, 9:55 am)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Yinghai Lu
, (Sun Aug 17, 12:16 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Sun Aug 17, 12:29 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Sun Aug 17, 12:34 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Yinghai Lu
, (Sun Aug 17, 1:58 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Sun Aug 17, 2:47 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Mon Aug 18, 3:22 am)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Yinghai Lu
, (Mon Aug 18, 2:50 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Mon Aug 18, 3:08 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Yinghai Lu
, (Mon Aug 18, 3:36 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Yinghai Lu
, (Mon Aug 18, 3:37 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Simon Arlott
, (Mon Aug 18, 3:42 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Tue Aug 19, 10:58 am)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Simon Arlott
, (Tue Aug 19, 11:33 am)
[PATCH] forcedeth: Fix kexec regression
, Rafael J. Wysocki
, (Tue Aug 19, 11:45 am)
Re: [PATCH] forcedeth: Fix kexec regression
, Andrew Morton
, (Tue Aug 19, 1:37 pm)
Re: [PATCH] forcedeth: Fix kexec regression
, Rafael J. Wysocki
, (Tue Aug 19, 1:49 pm)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Rafael J. Wysocki
, (Tue Aug 19, 2:09 pm)
Re: [PATCH] forcedeth: Fix kexec regression
, Eric W. Biederman
, (Wed Aug 20, 12:01 am)
Re: [PATCH] forcedeth: Fix kexec regression
, Rafael J. Wysocki
, (Wed Aug 20, 6:12 am)
Re: [PATCH] net: forcedeth use pci_choose_state instead of ...
, Simon Arlott
, (Sat Aug 30, 12:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Stefan Richter
Re: sata & scsi suggestion for make menuconfig
Rafael J. Wysocki
[Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_in...
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Marcin Slusarz
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
Andrew Morton
2.6.23-rc6-mm1
git
:
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Jason Dixon
Re: any web management gui for pf ?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Marco Peereboom
Re: Singularity OS
Colocation donated by:
Syndicate