]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:06:53 +0000 (21:06 +0800)
commit8558171b6917b006e406646720b5b1f7df7623ed
tree1df164d33a4d06f49bdc1eff9c56a6e36a1e1647
parent19252e39f3792c5ce6da6bbd2ef3759a16036e2c
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.

(cherry picked from commit 749ab2cd127046df79084b6b9165b23491b1db5f)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c