]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
pcie: Set the "link active" in the link status register
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 4 Jul 2015 23:26:03 +0000 (09:26 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 07:09:56 +0000 (10:09 +0300)
Some firmwares can test that and assume the device hasn't come
up if that bit isn't set

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie.c

index 14c77117f68c62659b2711695e83d9c9213950f1..6e28985bd1b50db9a414040af832f8edb3fa50d9 100644 (file)
@@ -78,7 +78,7 @@ int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port)
                  PCI_EXP_LNK_LS_25);
 
     pci_set_word(exp_cap + PCI_EXP_LNKSTA,
-                 PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25);
+                 PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25 |PCI_EXP_LNKSTA_DLLLA);
 
     pci_set_long(exp_cap + PCI_EXP_DEVCAP2,
                  PCI_EXP_DEVCAP2_EFF | PCI_EXP_DEVCAP2_EETLPP);