Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 312497 Details for
Bug 456438
[RHEL4.7 Beta] Wake on LAN function does not operate with LAN card which uses igb driver
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
igb-wol_rhel47.patch (text/plain), 1.59 KB, created by
Flavio Leitner
on 2008-07-23 16:58:19 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Flavio Leitner
Created:
2008-07-23 16:58:19 UTC
Size:
1.59 KB
patch
obsolete
>--- linux-2.6.9-70.EL/drivers/net/igb/igb_main.c_org 2008-07-02 19:49:25.000000000 +0900 >+++ linux-2.6.9-70.EL/drivers/net/igb/igb_main.c 2008-07-02 20:17:13.000000000 +0900 >@@ -42,6 +42,7 @@ > #include <linux/delay.h> > #include <linux/interrupt.h> > #include <linux/if_ether.h> >+#include <linux/reboot.h> > > #include "igb.h" > >@@ -121,6 +122,13 @@ > #ifdef CONFIG_PM > static int igb_resume(struct pci_dev *); > #endif >+static int igb_notify_reboot(struct notifier_block *, unsigned long, void *); >+static struct notifier_block igb_notifier_reboot = { >+ .notifier_call = igb_notify_reboot, >+ .next = NULL, >+ .priority = 0 >+}; >+ > #if 0 /* not in RHEL4 */ > static void igb_shutdown(struct pci_dev *); > #endif >@@ -194,6 +202,10 @@ > printk(KERN_INFO "%s\n", igb_copyright); > > ret = pci_register_driver(&igb_driver); >+ if (ret >= 0) { >+ register_reboot_notifier(&igb_notifier_reboot); >+ } >+ > return ret; > } > >@@ -207,6 +219,7 @@ > **/ > static void __exit igb_exit_module(void) > { >+ unregister_reboot_notifier(&igb_notifier_reboot); > pci_unregister_driver(&igb_driver); > } > >@@ -3879,6 +3892,22 @@ > return 0; > } > >+static int igb_notify_reboot(struct notifier_block *nb, unsigned long event, >+ void *p) >+{ >+ struct pci_dev *pdev = NULL; >+ >+ switch (event) { >+ case SYS_DOWN: >+ case SYS_HALT: >+ case SYS_POWER_OFF: >+ while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev))) { >+ if (pci_dev_driver(pdev) == &igb_driver) >+ igb_suspend(pdev, 3); >+ } >+ } >+ return NOTIFY_DONE; >+} > > static int igb_suspend(struct pci_dev *pdev, pm_message_t state) > { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 456438
: 312497