e1000e: ethtool unnecessarily takes device out of RPM suspend
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 27 Jun 2013 02:44:44 +0000 (02:44 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 28 Jul 2013 10:31:39 +0000 (03:31 -0700)
commit3ef672ab1862bbd44cc364e72ebd356783ab0243
tree77d3f25652ecc779f44afc62bebb8a7cf49897dd
parente0236ad9cd29f3e08dc0baa60ea3a8b219ff2610
e1000e: ethtool unnecessarily takes device out of RPM suspend

A previous patch (commit e60b22c5b7 e1000e: fix accessing to suspended
device) added .begin and .complete ethtool driver callbacks so that the
device was resumed from Runtime Power Management (RPM) suspend state for
all ethtool operations.  This is overkill for operations which do not need
to access any registers in the device.  This patch makes it so that the
device is taken out of RPM suspend only for those ethtool operations that
must access device registers.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ethtool.c