]> git.proxmox.com Git - mirror_qemu.git/commit
shpc: disallow unplug when power indicator is blinking
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 16 Nov 2022 21:44:58 +0000 (00:44 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 27 Jan 2023 14:48:49 +0000 (09:48 -0500)
commit9ce75d4d5eaf30333797fd6f8b5c6ee7f917951f
tree0ea5cb8817bbfa44dd8708dbf11f9e37bcf5e67d
parent13356edb87506c148b163b8c7eb0695647d00c2a
shpc: disallow unplug when power indicator is blinking

Pressing attention button has special meaning when power indicator is
blinking. Better just not do it.

For example, trying to remove device immediately after hotplug leads to
both commands succeded but device not actually unrealized.

Same thing for PCIE hotplug was done in
  81124b3c7a5dae "pcie: add power indicator blink check"

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20221116214458.82090-1-vsementsov@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/shpc.c