mirror of
https://github.com/qemu/qemu.git
synced 2024-12-12 21:23:36 +08:00
pcie: set power indicator to off on reset by default
It should not be zero, the only valid values are ON, OFF and BLINK. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Anton Kuchin <antonkuchin@yandex-team.ru> Message-Id: <20230216180356.156832-13-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
5aaed9caf1
commit
1768e97b91
@ -684,6 +684,7 @@ void pcie_cap_slot_reset(PCIDevice *dev)
|
||||
PCI_EXP_SLTCTL_PDCE |
|
||||
PCI_EXP_SLTCTL_ABPE);
|
||||
pci_word_test_and_set_mask(exp_cap + PCI_EXP_SLTCTL,
|
||||
PCI_EXP_SLTCTL_PWR_IND_OFF |
|
||||
PCI_EXP_SLTCTL_ATTN_IND_OFF);
|
||||
|
||||
if (dev->cap_present & QEMU_PCIE_SLTCAP_PCP) {
|
||||
|
Loading…
Reference in New Issue
Block a user