Commit c7225c14 authored by Russell King's avatar Russell King Committed by Linus Torvalds

[PATCH] Always re-read vendor for each function

We should probably always read the vendor ID from each function
rather than assuming that it is identical to function 0.
parent ae43a713
......@@ -263,9 +263,9 @@ int cb_alloc(socket_info_t * s)
dev->sysdata = bus->sysdata;
dev->dev.parent = bus->dev;
dev->dev.bus = &pci_bus_type;
dev->devfn = i;
dev->vendor = vend;
pci_read_config_word(dev, PCI_VENDOR_ID, &dev->vendor);
pci_read_config_word(dev, PCI_DEVICE_ID, &dev->device);
dev->hdr_type = hdr & 0x7f;
dev->dma_mask = 0xffffffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment