Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206096
b: refs/heads/master
c: 3f579c3
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Jul 30, 2010
1 parent 3c5a72d commit efb7608
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ba10bc75271e4139eb9ca67d107624d581e3a94
refs/heads/master: 3f579c340fe6d6bdd8c6f9f144e7c3b85d4174ec
12 changes: 7 additions & 5 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,19 +874,16 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge)
again:
pci_bus_size_bridges(parent);
__pci_bridge_assign_resources(bridge, &head);
retval = pci_reenable_device(bridge);
pci_set_master(bridge);
pci_enable_bridges(parent);

tried_times++;

if (!head.next)
return;
goto enable_all;

if (tried_times >= 2) {
/* still fail, don't need to try more */
free_failed_list(&head);
return;
goto enable_all;
}

printk(KERN_DEBUG "PCI: No. %d try to assign unassigned res\n",
Expand Down Expand Up @@ -919,5 +916,10 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge)
free_failed_list(&head);

goto again;

enable_all:
retval = pci_reenable_device(bridge);
pci_set_master(bridge);
pci_enable_bridges(parent);
}
EXPORT_SYMBOL_GPL(pci_assign_unassigned_bridge_resources);

0 comments on commit efb7608

Please sign in to comment.