From: Benjamin Herrenschmidt Date: Sat, 4 Jul 2015 23:26:03 +0000 (+1000) Subject: pcie: Set the "link active" in the link status register X-Git-Tag: v2.4.0-rc0~9^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2101eae63ea57b571cee4a9075a4287d24ba4a4;p=thirdparty%2Fqemu.git pcie: Set the "link active" in the link status register Some firmwares can test that and assume the device hasn't come up if that bit isn't set Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 14c77117f68..6e28985bd1b 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -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);