Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180671
b: refs/heads/master
c: 172d2d0
h: refs/heads/master
i:
  180669: a8c0979
  180667: ab0e5b2
  180663: d89c454
  180655: 6558f0f
  180639: d2bd319
  180607: 27b6b1c
v: v3
  • Loading branch information
David S. Miller committed Feb 18, 2010
1 parent bf5b8dc commit 7bf8981
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8c2fcadc933f713d51f46ec4dcd9b12830e0df84
refs/heads/master: 172d2d0041fdd4f3617dbdff8296bf279db3d5fb
7 changes: 7 additions & 0 deletions trunk/arch/sparc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
struct pci_bus *bus, int devfn)
{
struct dev_archdata *sd;
struct pci_slot *slot;
struct of_device *op;
struct pci_dev *dev;
const char *type;
Expand Down Expand Up @@ -286,6 +287,11 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
dev->dev.bus = &pci_bus_type;
dev->devfn = devfn;
dev->multifunction = 0; /* maybe a lie? */
set_pcie_port_type(dev);

list_for_each_entry(slot, &dev->bus->slots, list)
if (PCI_SLOT(dev->devfn) == slot->number)
dev->slot = slot;

dev->vendor = of_getintprop_default(node, "vendor-id", 0xffff);
dev->device = of_getintprop_default(node, "device-id", 0xffff);
Expand Down Expand Up @@ -322,6 +328,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,

dev->current_state = 4; /* unknown power state */
dev->error_state = pci_channel_io_normal;
dev->dma_mask = 0xffffffff;

if (!strcmp(node->name, "pci")) {
/* a PCI-PCI bridge */
Expand Down

0 comments on commit 7bf8981

Please sign in to comment.