]> git.baikalelectronics.ru Git - kernel.git/commit
igb: add basic runtime PM support
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 4 Jan 2012 20:23:37 +0000 (20:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 18:12:03 +0000 (13:12 -0500)
commit1cf8af1548dd51d6150fd09a0c2f45cc07be115b
treefd91fc5d9907d6cffd74876c80acc386d2dd7dac
parent71e1c3c1c6da776d8572899d45b448a6f1dccc50
igb: add basic runtime PM support

Use the runtime power management framework to add basic runtime PM support
to the igb driver. Namely, make the driver suspend the device when the link
is off and set it up for generating a wakeup event after the link has been
detected again. This feature is disabled by default.

Based on e1000e's runtime PM code.

Changes since v1:
Don't suspend the device when shutting down the interface.
Avoid race between runtime suspending and ethtool operations.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/igb_ethtool.c
drivers/net/ethernet/intel/igb/igb_main.c