diff options
author | Matt Spinler <spinler@us.ibm.com> | 2018-06-27 13:01:25 -0500 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-07-24 20:56:11 +0000 |
commit | 15309efc2c1cebadbabdb0ef5f74a38fb8b78cfd (patch) | |
tree | 739a585033f28e2da1237b80e1545df4deacf305 /sensordatahandler.cpp | |
parent | 1500a64704cf558a1d08d1cf0db7a4a3d550989a (diff) | |
download | phosphor-host-ipmid-15309efc2c1cebadbabdb0ef5f74a38fb8b78cfd.tar.gz phosphor-host-ipmid-15309efc2c1cebadbabdb0ef5f74a38fb8b78cfd.zip |
Clear host command queue on a power on
When the RequestedHostTransition property changes to On, clear
any pending commands in the command queue. This is done to avoid
race conditions around state transitions as well as other
scenarios like the following:
1) Host is already off
2) RequestedHostTransition is set to Off
3) RequestedHostTransition is set to On
4) Host powers on
5) Host immediately powers off because of the pending command
sent in 2).
Resolves openbmc/openbmc#3207
Tested: Verified the scenario above no longer occurs.
Change-Id: I26c8195c305c75b01333d1b10ff4bf16d76b91a6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'sensordatahandler.cpp')
0 files changed, 0 insertions, 0 deletions