* Pull request for 'jg-20061009-00' tag
@ 2006-10-09 20:21 Francois Romieu
2006-10-11 8:47 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2006-10-09 20:21 UTC (permalink / raw)
To: jeff; +Cc: netdev, Andrew Morton, Ayaz Abdulla, dragoran, ranma+kernel,
hchacha
Please pull from tag 'jg-20061009-00' in repository
git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6.git jg-20061009-00
to get the changes below.
Distance from 'upstream-fixes'
-----------------------------
$ git rev-list 2f614fe04f4463ff22234133319067d7361f54e5..jg-20061009-00
91a6ba7162852092080b0e710dc0ba0f35496308
73f5e28b336772c4b08ee82e5bf28ab872898ee1
Diffstat
--------
drivers/net/forcedeth.c | 43 +++++++++++++++++++++++++++++++++++++++++++
drivers/net/r8169.c | 1 +
2 files changed, 44 insertions(+), 0 deletions(-)
Shortlog
--------
Andrew Morton:
r8169: PCI ID for Corega Gigabit network card
Francois Romieu:
forcedeth: restore network after swsup/resume or ACPI S3
Patch
-----
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 35467e0..c41a886 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -4603,6 +4603,47 @@ static void __devexit nv_remove(struct p
pci_set_drvdata(pci_dev, NULL);
}
+
+static int nv_suspend(struct pci_dev *pdev, pm_message_t state)
+{
+ struct net_device *dev = pci_get_drvdata(pdev);
+ struct fe_priv *np = netdev_priv(dev);
+ int rc = 0;
+
+ if (!netif_running(dev))
+ goto out;
+
+ netif_device_detach(dev);
+
+ /* Gross. */
+ rc = nv_close(dev);
+
+ pci_save_state(pdev);
+ pci_enable_wake(pdev, pci_choose_state(pdev, state), np->wolenabled);
+ pci_set_power_state(pdev, pci_choose_state(pdev, state));
+out:
+ return rc;
+}
+
+static int nv_resume(struct pci_dev *pdev)
+{
+ struct net_device *dev = pci_get_drvdata(pdev);
+ int rc = 0;
+
+ if (!netif_running(dev))
+ goto out;
+
+ netif_device_attach(dev);
+
+ pci_set_power_state(pdev, PCI_D0);
+ pci_restore_state(pdev);
+ pci_enable_wake(pdev, PCI_D0, 0);
+
+ rc = nv_open(dev);
+out:
+ return rc;
+}
+
static struct pci_device_id pci_tbl[] = {
{ /* nForce Ethernet Controller */
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NVENET_1),
@@ -4704,6 +4745,8 @@ static struct pci_driver driver = {
.id_table = pci_tbl,
.probe = nv_probe,
.remove = __devexit_p(nv_remove),
+ .suspend = nv_suspend,
+ .resume = nv_resume,
};
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 4c47c5b..c7309e9 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -214,6 +214,7 @@ static struct pci_device_id rtl8169_pci_
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8168), 0, 0, RTL_CFG_2 },
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8169), 0, 0, RTL_CFG_0 },
{ PCI_DEVICE(PCI_VENDOR_ID_DLINK, 0x4300), 0, 0, RTL_CFG_0 },
+ { PCI_DEVICE(0x1259, 0xc107), 0, 0, RTL_CFG_0 },
{ PCI_DEVICE(0x16ec, 0x0116), 0, 0, RTL_CFG_0 },
{ PCI_VENDOR_ID_LINKSYS, 0x1032,
PCI_ANY_ID, 0x0024, 0, 0, RTL_CFG_0 },
--
Ueimor
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Pull request for 'jg-20061009-00' tag
2006-10-09 20:21 Pull request for 'jg-20061009-00' tag Francois Romieu
@ 2006-10-11 8:47 ` Jeff Garzik
2006-10-11 10:48 ` Francois Romieu
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2006-10-11 8:47 UTC (permalink / raw)
To: Francois Romieu
Cc: netdev, Andrew Morton, Ayaz Abdulla, dragoran, ranma+kernel,
hchacha
Francois Romieu wrote:
> Please pull from tag 'jg-20061009-00' in repository
>
> git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6.git jg-20061009-00
>
> to get the changes below.
>
> Distance from 'upstream-fixes'
> -----------------------------
>
> $ git rev-list 2f614fe04f4463ff22234133319067d7361f54e5..jg-20061009-00
> 91a6ba7162852092080b0e710dc0ba0f35496308
> 73f5e28b336772c4b08ee82e5bf28ab872898ee1
>
> Diffstat
> --------
>
> drivers/net/forcedeth.c | 43 +++++++++++++++++++++++++++++++++++++++++++
> drivers/net/r8169.c | 1 +
> 2 files changed, 44 insertions(+), 0 deletions(-)
I merged the forcedeth change via another source. Could I pull from a
tag with just the r8169 change?
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Pull request for 'jg-20061009-00' tag
2006-10-11 8:47 ` Jeff Garzik
@ 2006-10-11 10:48 ` Francois Romieu
0 siblings, 0 replies; 3+ messages in thread
From: Francois Romieu @ 2006-10-11 10:48 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev, Andrew Morton, hchacha
(removed the forcedeth people from the Cc:)
Jeff Garzik <jeff@garzik.org> :
[...]
> I merged the forcedeth change via another source. Could I pull from a
> tag with just the r8169 change?
Yes, you can pull from:
git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6.git jg-20061011-00
--
Ueimor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-11 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 20:21 Pull request for 'jg-20061009-00' tag Francois Romieu
2006-10-11 8:47 ` Jeff Garzik
2006-10-11 10:48 ` Francois Romieu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).