aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2008-11-12 19:01:41 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-12 19:01:41 -0500
commit5ec6d7bf195c2e70003ff30e4f51390ef7e85a31 (patch)
tree3e082ab7a900822c9cb48a8ed8f8df469e6f145d /drivers/net/bnx2.c
parent1caacecb7cb2b72e798f06a32b5061075cf397fa (diff)
bnx2: Restrict WoL support.
On some quad-port cards that cannot support WoL on all ports due to excessive power consumption, the driver needs to restrict WoL on some ports by checking VAUX_PRESET bit. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 49ebb5055fd4..d28cbce0ec48 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -7586,7 +7586,8 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7586 7586
7587 if ((CHIP_ID(bp) == CHIP_ID_5708_A0) || 7587 if ((CHIP_ID(bp) == CHIP_ID_5708_A0) ||
7588 (CHIP_ID(bp) == CHIP_ID_5708_B0) || 7588 (CHIP_ID(bp) == CHIP_ID_5708_B0) ||
7589 (CHIP_ID(bp) == CHIP_ID_5708_B1)) { 7589 (CHIP_ID(bp) == CHIP_ID_5708_B1) ||
7590 !(REG_RD(bp, BNX2_PCI_CONFIG_3) & BNX2_PCI_CONFIG_3_VAUX_PRESET)) {
7590 bp->flags |= BNX2_FLAG_NO_WOL; 7591 bp->flags |= BNX2_FLAG_NO_WOL;
7591 bp->wol = 0; 7592 bp->wol = 0;
7592 } 7593 }