Commit 3ce2c3f9 authored by Eilon Greenstein's avatar Eilon Greenstein Committed by David S. Miller

bnx2x: Using nvram default WoL config

The driver default WoL setting is set to the nvram default value
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3e5b510e
...@@ -8027,6 +8027,12 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) ...@@ -8027,6 +8027,12 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp)
bp->link_params.feature_config_flags &= bp->link_params.feature_config_flags &=
~FEATURE_CONFIG_MODULE_ENFORCMENT_ENABLED; ~FEATURE_CONFIG_MODULE_ENFORCMENT_ENABLED;
/* If the device is capable of WoL, set the default state according
* to the HW
*/
bp->wol = (!(bp->flags & NO_WOL_FLAG) &&
(config & PORT_FEATURE_WOL_ENABLED));
BNX2X_DEV_INFO("lane_config 0x%08x ext_phy_config 0x%08x" BNX2X_DEV_INFO("lane_config 0x%08x ext_phy_config 0x%08x"
" speed_cap_mask 0x%08x link_config 0x%08x\n", " speed_cap_mask 0x%08x link_config 0x%08x\n",
bp->link_params.lane_config, bp->link_params.lane_config,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment