]> 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)
commit7e88feedcefa962ef3e2180fef9af696bd535bbd
tree77d3f25652ecc779f44afc62bebb8a7cf49897dd
parentf65f1562e38231fdfcf76e9c9ffe54ae542a2306
e1000e: ethtool unnecessarily takes device out of RPM suspend

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