Skip to contentSkip to conversation

Fix PCI root bridge resources to handle prior allocations

PATCH New Bjorn Helgaas 1 participant 1 message Dec 18, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix PCI root bridge resources to handle prior allocations

ia64: Fix PCI root bridge resources to handle prior allocations.

(alloc_resources): Use insert_resource(), not request_resource(), to
allocate PCI root bridge windows. This fixes the problem where root bridge window allocation fails because an early driver (like VGA) has already allocated things.

=== arch/ia64/pci/pci.c 1.37 vs edited ==--- 1.37/arch/ia64/pci/pci.c Thu Jul 31 17:47:19 2003
+++ edited/arch/ia64/pci/pci.c Thu Nov 20 10:45:52 2003
@@ -153,7 +153,7 @@
res->end = end;
res->flags = flags;

- if (request_resource(root, res))
+ if (insert_resource(root, res))
return -EBUSY;

return 0;