|
@@ -730,6 +730,7 @@ int pci_setup_device(struct pci_dev *dev)
|
|
|
u32 class;
|
|
|
u8 hdr_type;
|
|
|
struct pci_slot *slot;
|
|
|
+ int pos = 0;
|
|
|
|
|
|
if (pci_read_config_byte(dev, PCI_HEADER_TYPE, &hdr_type))
|
|
|
return -EIO;
|
|
@@ -822,6 +823,11 @@ int pci_setup_device(struct pci_dev *dev)
|
|
|
dev->transparent = ((dev->class & 0xff) == 1);
|
|
|
pci_read_bases(dev, 2, PCI_ROM_ADDRESS1);
|
|
|
set_pcie_hotplug_bridge(dev);
|
|
|
+ pos = pci_find_capability(dev, PCI_CAP_ID_SSVID);
|
|
|
+ if (pos) {
|
|
|
+ pci_read_config_word(dev, pos + PCI_SSVID_VENDOR_ID, &dev->subsystem_vendor);
|
|
|
+ pci_read_config_word(dev, pos + PCI_SSVID_DEVICE_ID, &dev->subsystem_device);
|
|
|
+ }
|
|
|
break;
|
|
|
|
|
|
case PCI_HEADER_TYPE_CARDBUS: /* CardBus bridge header */
|