aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb_main.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-03-13 16:41:17 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-14 15:41:03 -0400
commita2cf8b6ce17415fc84f51300fd6be372d95bfcea (patch)
treeef90bd54d499e89453e201e2e4622e8f0169e4c9 /drivers/net/igb/igb_main.c
parentbd38e5d124ddd11c457c5ae7242cd039045d80e0 (diff)
igb: support wol on second port
We need to support wol on the second port for situations such as when the lan ports are on the motherboard itself. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r--drivers/net/igb/igb_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 5277d56e989e..f0c3a01452c8 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1351,9 +1351,10 @@ static int __devinit igb_probe(struct pci_dev *pdev,
1351 * enable the ACPI Magic Packet filter 1351 * enable the ACPI Magic Packet filter
1352 */ 1352 */
1353 1353
1354 if (hw->bus.func == 0 || 1354 if (hw->bus.func == 0)
1355 hw->device_id == E1000_DEV_ID_82575EB_COPPER)
1356 hw->nvm.ops.read(hw, NVM_INIT_CONTROL3_PORT_A, 1, &eeprom_data); 1355 hw->nvm.ops.read(hw, NVM_INIT_CONTROL3_PORT_A, 1, &eeprom_data);
1356 else if (hw->bus.func == 1)
1357 hw->nvm.ops.read(hw, NVM_INIT_CONTROL3_PORT_B, 1, &eeprom_data);
1357 1358
1358 if (eeprom_data & eeprom_apme_mask) 1359 if (eeprom_data & eeprom_apme_mask)
1359 adapter->eeprom_wol |= E1000_WUFC_MAG; 1360 adapter->eeprom_wol |= E1000_WUFC_MAG;