Skip to content

Commit 5e350b9

Browse files
Todd FujinakaJeff Kirsher
authored andcommitted
igb: enable WoL for OEM devices regardless of EEPROM setting
Override EEPROM settings for specific OEM devices. Signed-off-by: Todd Fujinaka <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 5b70e4a commit 5e350b9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,26 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
25382538
adapter->wol = 0;
25392539
}
25402540

2541+
/* Some vendors want the ability to Use the EEPROM setting as
2542+
* enable/disable only, and not for capability
2543+
*/
2544+
if (((hw->mac.type == e1000_i350) ||
2545+
(hw->mac.type == e1000_i354)) &&
2546+
(pdev->subsystem_vendor == PCI_VENDOR_ID_DELL)) {
2547+
adapter->flags |= IGB_FLAG_WOL_SUPPORTED;
2548+
adapter->wol = 0;
2549+
}
2550+
if (hw->mac.type == e1000_i350) {
2551+
if (((pdev->subsystem_device == 0x5001) ||
2552+
(pdev->subsystem_device == 0x5002)) &&
2553+
(hw->bus.func == 0)) {
2554+
adapter->flags |= IGB_FLAG_WOL_SUPPORTED;
2555+
adapter->wol = 0;
2556+
}
2557+
if (pdev->subsystem_device == 0x1F52)
2558+
adapter->flags |= IGB_FLAG_WOL_SUPPORTED;
2559+
}
2560+
25412561
device_set_wakeup_enable(&adapter->pdev->dev,
25422562
adapter->flags & IGB_FLAG_WOL_SUPPORTED);
25432563

0 commit comments

Comments
 (0)