diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-08 13:16:33 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-26 14:39:12 -0500 |
commit | a1e4d72cd3024999bfb6703092ea271438805c89 (patch) | |
tree | 853a289d73ad9ffb04038fc493d209e980a3ef9b /drivers/pci/probe.c | |
parent | 09c09bc618a4ceec387c57542031b4fc35826e16 (diff) |
PM: Allow PCI devices to suspend/resume asynchronously
Set power.async_suspend for all PCI devices and PCIe port services,
so that they can be suspended and resumed in parallel with other
devices they don't depend on in a known way (i.e. devices which are
not their parents or children).
This only affects the "regular" suspend and resume stages, which
means in particular that the restoration of the PCI devices' standard
configuration registers during resume will still be carried out
synchronously (at the "early" resume stage).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 270d069819f..2a943090a3b 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -1436,6 +1436,7 @@ struct pci_bus * pci_create_bus(struct device *parent, | |||
1436 | if (error) | 1436 | if (error) |
1437 | goto dev_reg_err; | 1437 | goto dev_reg_err; |
1438 | b->bridge = get_device(dev); | 1438 | b->bridge = get_device(dev); |
1439 | device_enable_async_suspend(b->bridge); | ||
1439 | 1440 | ||
1440 | if (!parent) | 1441 | if (!parent) |
1441 | set_dev_node(b->bridge, pcibus_to_node(b)); | 1442 | set_dev_node(b->bridge, pcibus_to_node(b)); |