diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2023-02-16 21:03:39 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-03-02 03:10:48 -0500 |
commit | 93af1274ea6220ef5eae6058b2fe74ae2c8b842b (patch) | |
tree | 90a4337988fba5ea23ea26c932bb6cbbe5d18de5 /hw/pci | |
parent | 2e1a9de96b487cf818a22d681cad8d3f5d18dcca (diff) | |
download | qemu-93af1274ea6220ef5eae6058b2fe74ae2c8b842b.zip qemu-93af1274ea6220ef5eae6058b2fe74ae2c8b842b.tar.gz qemu-93af1274ea6220ef5eae6058b2fe74ae2c8b842b.tar.bz2 |
pci/shpc: set attention led to OFF on reset
0 is not a valid state for the led. Let's start with OFF.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Anton Kuchin <antonkuchin@yandex-team.ru>
Message-Id: <20230216180356.156832-2-vsementsov@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r-- | hw/pci/shpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci/shpc.c b/hw/pci/shpc.c index fca7f66..1b3f619 100644 --- a/hw/pci/shpc.c +++ b/hw/pci/shpc.c @@ -223,6 +223,7 @@ void shpc_reset(PCIDevice *d) SHPC_SLOT_STATUS_PRSNT_MASK); shpc_set_status(shpc, i, SHPC_LED_OFF, SHPC_SLOT_PWR_LED_MASK); } + shpc_set_status(shpc, i, SHPC_LED_OFF, SHPC_SLOT_ATTN_LED_MASK); shpc_set_status(shpc, i, 0, SHPC_SLOT_STATUS_66); } shpc_set_sec_bus_speed(shpc, SHPC_SEC_BUS_33); |