From: Eilon Greenstein Date: Thu, 12 Feb 2009 08:37:52 +0000 (+0000) Subject: bnx2x: Using nvram default WoL config X-Git-Tag: firefly_0821_release~15237^2~698 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ce2c3f9a30dd7756dcbe2322841754f18f098f0;p=firefly-linux-kernel-4.4.55.git bnx2x: Using nvram default WoL config The driver default WoL setting is set to the nvram default value Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 2e95799a0db2..a14fe7544844 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c @@ -8027,6 +8027,12 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) bp->link_params.feature_config_flags &= ~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" " speed_cap_mask 0x%08x link_config 0x%08x\n", bp->link_params.lane_config,