diff options
| author | Benjamin Herrenschmidt | 2015-07-05 01:26:03 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-07-08 09:09:56 +0200 |
| commit | b2101eae63ea57b571cee4a9075a4287d24ba4a4 (patch) | |
| tree | fb84b2bc7643347e287f48493e676db9fc262b53 | |
| parent | pci_regs.h: import from linux (diff) | |
| download | qemu-b2101eae63ea57b571cee4a9075a4287d24ba4a4.tar.gz qemu-b2101eae63ea57b571cee4a9075a4287d24ba4a4.tar.xz qemu-b2101eae63ea57b571cee4a9075a4287d24ba4a4.zip | |
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 <benh@kernel.crashing.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| -rw-r--r-- | hw/pci/pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 14c77117f6..6e28985bd1 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); |
