提交 a3cb999d 编写于 作者: Y Yinghai Lu 提交者: Bjorn Helgaas

PCI: Add root bus children dev's res to fail list

We can stop trying according to try_number now and do not need to use
root_bus checking as stop sign.

In extreme case we could need to reallocate resource for device just
under root bus.  For PCI root bus hot-add, we need to retry to assign
resources to PCI devices just under pci root bus.
Signed-off-by: NYinghai Lu <yinghai@kernel.org>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 1f96a965
...@@ -283,7 +283,7 @@ static void assign_requested_resources_sorted(struct list_head *head, ...@@ -283,7 +283,7 @@ static void assign_requested_resources_sorted(struct list_head *head,
idx = res - &dev_res->dev->resource[0]; idx = res - &dev_res->dev->resource[0];
if (resource_size(res) && if (resource_size(res) &&
pci_assign_resource(dev_res->dev, idx)) { pci_assign_resource(dev_res->dev, idx)) {
if (fail_head && !pci_is_root_bus(dev_res->dev->bus)) { if (fail_head) {
/* /*
* if the failed res is for ROM BAR, and it will * if the failed res is for ROM BAR, and it will
* be enabled later, don't add it to the list * be enabled later, don't add it to the list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册