summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/dlink
diff options
context:
space:
mode:
authorDavid Ertman <davidx.m.ertman@intel.com>2014-02-14 11:16:41 +0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-03-08 10:19:53 +0400
commit2800209994f878b00724ceabb65d744855c8f99a (patch)
treeb7684abf83e2b193c1d86c13c04ad8e712229af3 /drivers/net/ethernet/dlink
parent3b70d4f8486ecbd6a7d931901309b49b07435774 (diff)
downloadlinux-2800209994f878b00724ceabb65d744855c8f99a.tar.xz
e1000e: Refactor PM flows
Refactor the system power management flows to prevent the suspend path from being executed twice when hibernating since both the freeze and poweroff callbacks were set to e1000_suspend() via SET_SYSTEM_SLEEP_PM_OPS. There are HW workarounds that are performed during this flow and calling them twice was causing erroneous behavior. Re-arrange the code to take advantage of common code paths and explicitly set the individual dev_pm_ops callbacks for suspend, resume, freeze, thaw, poweroff and restore. Add a boolean parameter (reset) to the e1000e_down function to allow for cases when the HW should not be reset when downed during a PM event. Now that all suspend/shutdown paths result in a call to __e1000_shutdown() that checks Wake on Lan status, removing redundant check for WoL in e1000_power_down_phy(). Signed-off-by: Dave Ertman <davidx.m.ertman@intel.com> Acked-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/dlink')
0 files changed, 0 insertions, 0 deletions