]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3c3c0d3dc8bc77e912be6c2fc5df82542080cfd
tree77d3f25652ecc779f44afc62bebb8a7cf49897dd
parent52e8f4376b5e70f602d991cab52d863c43598085
e1000e: ethtool unnecessarily takes device out of RPM suspend

A previous patch (commit 657786206e 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