linux/drivers/net/e1000e
Alan Stern f3ec4f87d6 PCI: change device runtime PM settings for probe and remove
This patch (as1388) changes the way the PCI core handles runtime PM
settings when probing or unbinding drivers.  Now the core will make
sure the device is enabled for runtime PM, with a usage count >= 1,
when a driver is probed.  It does the same when calling a driver's
remove method.

If the driver wants to use runtime PM, all it has to do is call
pm_runtime_pu_noidle() near the end of its probe routine (to cancel
the core's usage increment) and pm_runtime_get_noresume() near the
start of its remove routine (to restore the usage count).  It does not
need to mess around with setting the runtime state to enabled,
disabled, active, or suspended.

The patch updates e1000e and r8169, the only PCI drivers that already
use the existing runtime PM interface.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2010-07-30 09:29:09 -07:00
..
82571.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
defines.h e1000e: fix checks for manageability enabled and management pass-through 2010-05-12 23:31:13 -07:00
e1000.h e1000e: save skb counts in TX to avoid cache misses 2010-05-05 21:11:25 -07:00
es2lan.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ethtool.c e1000e: bad state after running ethtool diagnostics with AMT enabled 2010-05-12 23:31:09 -07:00
hw.h e1000e: add PCI device id to enable support for 82567V-4 2010-05-12 23:31:15 -07:00
ich8lan.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
lib.c e1000e: fix checks for manageability enabled and management pass-through 2010-05-12 23:31:13 -07:00
Makefile e1000e: reformat comment blocks, cosmetic changes only 2008-03-28 22:14:56 -04:00
netdev.c PCI: change device runtime PM settings for probe and remove 2010-07-30 09:29:09 -07:00
param.c e1000e: use static params to save stack space (part 2) 2010-05-12 23:31:09 -07:00
phy.c e1000e: Incorrect function pointer set for force_speed_duplex on 82577 2010-05-12 23:31:12 -07:00