Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17503
b: refs/heads/master
c: cd5b50b
h: refs/heads/master
i:
  17501: 02b677c
  17499: 97a5f8b
  17495: 43e3aa9
  17487: b88a327
  17471: c8f5f37
v: v3
  • Loading branch information
linas@austin.ibm.com authored and Greg Kroah-Hartman committed Jan 9, 2006
1 parent 8c2897d commit d90b3fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 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: d681db4aed4453c7d34adfbb64956271186514e9
refs/heads/master: cd5b50be8d8e8e6170da3a261fc625fd603f9dc4
24 changes: 1 addition & 23 deletions trunk/drivers/pci/hotplug/rpadlpar_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,28 +112,6 @@ static struct slot *find_slot(struct device_node *dn)
return NULL;
}

static void rpadlpar_claim_one_bus(struct pci_bus *b)
{
struct list_head *ld;
struct pci_bus *child_bus;

for (ld = b->devices.next; ld != &b->devices; ld = ld->next) {
struct pci_dev *dev = pci_dev_b(ld);
int i;

for (i = 0; i < PCI_NUM_RESOURCES; i++) {
struct resource *r = &dev->resource[i];

if (r->parent || !r->start || !r->flags)
continue;
rpaphp_claim_resource(dev, i);
}
}

list_for_each_entry(child_bus, &b->children, node)
rpadlpar_claim_one_bus(child_bus);
}

static struct pci_dev *dlpar_find_new_dev(struct pci_bus *parent,
struct device_node *dev_dn)
{
Expand Down Expand Up @@ -171,7 +149,7 @@ static struct pci_dev *dlpar_pci_add_bus(struct device_node *dn)
rpaphp_init_new_devs(dev->subordinate);

/* Claim new bus resources */
rpadlpar_claim_one_bus(dev->bus);
pcibios_claim_one_bus(dev->bus);

/* ioremap() for child bus, which may or may not succeed */
(void) remap_bus_range(dev->bus);
Expand Down
24 changes: 1 addition & 23 deletions trunk/drivers/pci/hotplug/rpaphp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,6 @@ struct pci_bus *rpaphp_find_pci_bus(struct device_node *dn)
}
EXPORT_SYMBOL_GPL(rpaphp_find_pci_bus);

int rpaphp_claim_resource(struct pci_dev *dev, int resource)
{
struct resource *res = &dev->resource[resource];
struct resource *root = pci_find_parent_resource(dev, res);
char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge";
int err = -EINVAL;

if (root != NULL) {
err = request_resource(root, res);
}

if (err) {
err("PCI: %s region %d of %s %s [%lx:%lx]\n",
root ? "Address space collision on" :
"No parent found for",
resource, dtype, pci_name(dev), res->start, res->end);
}
return err;
}

EXPORT_SYMBOL_GPL(rpaphp_claim_resource);

static int rpaphp_get_sensor_state(struct slot *slot, int *state)
{
int rc;
Expand Down Expand Up @@ -177,7 +155,7 @@ void rpaphp_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus)

if (r->parent || !r->start || !r->flags)
continue;
rpaphp_claim_resource(dev, i);
pci_claim_resource(dev, i);
}
}
}
Expand Down

0 comments on commit d90b3fe

Please sign in to comment.