Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322541
b: refs/heads/master
c: ea8c88f
h: refs/heads/master
i:
  322539: bc983af
v: v3
  • Loading branch information
Huang Ying authored and Bjorn Helgaas committed Aug 21, 2012
1 parent 394da78 commit 2ac1166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f9c1397e2e80e52b17ec4e39760caa807bd15c7
refs/heads/master: ea8c88f13d9fb1d6b39a05bfa07ae076ca1c6803
6 changes: 6 additions & 0 deletions trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,12 @@ static long local_pci_probe(void *_ddi)
{
struct drv_dev_and_id *ddi = _ddi;
struct device *dev = &ddi->dev->dev;
struct device *parent = dev->parent;
int rc;

/* The parent bridge must be in active state when probing */
if (parent)
pm_runtime_get_sync(parent);
/* Unbound PCI devices are always set to disabled and suspended.
* During probe, the device is set to enabled and active and the
* usage count is incremented. If the driver supports runtime PM,
Expand All @@ -298,6 +302,8 @@ static long local_pci_probe(void *_ddi)
pm_runtime_set_suspended(dev);
pm_runtime_put_noidle(dev);
}
if (parent)
pm_runtime_put(parent);
return rc;
}

Expand Down

0 comments on commit 2ac1166

Please sign in to comment.