aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2009-06-02 07:28:20 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-03 05:46:32 -0400
commit918d7197aa18a562eb7dc37b80a87e9ff1d7f7d9 (patch)
tree89bfc3556443abda48e6d4ec7789a3d6f7b872b0 /drivers/net/e1000e
parent6e50912a442947d5fafd296ca6fdcbeb36b163ff (diff)
e1000e: do not attempt to disable smart powerdown if not supported
During reset, the driver was attempting to disable the Smart Powerdown feature even if the part does not support Smart Powerdown. Check for support before attempting to disable the feature. Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e')
-rw-r--r--drivers/net/e1000e/netdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index f012cc62eff3..7e412d1168ed 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -2799,7 +2799,8 @@ void e1000e_reset(struct e1000_adapter *adapter)
2799 e1000e_reset_adaptive(hw); 2799 e1000e_reset_adaptive(hw);
2800 e1000_get_phy_info(hw); 2800 e1000_get_phy_info(hw);
2801 2801
2802 if (!(adapter->flags & FLAG_SMART_POWER_DOWN)) { 2802 if ((adapter->flags & FLAG_HAS_SMART_POWER_DOWN) &&
2803 !(adapter->flags & FLAG_SMART_POWER_DOWN)) {
2803 u16 phy_data = 0; 2804 u16 phy_data = 0;
2804 /* 2805 /*
2805 * speed up time to link by disabling smart power down, ignore 2806 * speed up time to link by disabling smart power down, ignore