Fix for Update LED State in case of forceRefresh

Issue: RetriggerLEDUpdate does not revert system ready and fault led
 xyz.openbmc_project.Led.Physical State to initial state in case of
   forceRefresh.

Tested:
LED State:
1. busctl call xyz.openbmc_project.LED.Controller.status_green
 /xyz/openbmc_project/led/physical/status_green
 org.freedesktop.DBus.Properties Get ss
 xyz.openbmc_project.Led.Physical State

v s "xyz.openbmc_project.Led.Physical.Action.Blink"

busctl call xyz.openbmc_project.LED.Controller.status_amber
 /xyz/openbmc_project/led/physical/status_amber
org.freedesktop.DBus.Properties Get ss
xyz.openbmc_project.Led.Physical State

v s "xyz.openbmc_project.Led.Physical.Action.Off"

2. Execute command in manufacturing mode:
          ipmitool raw 0x30 0x15 0x0f 0x00 0x00
              OR
           ipmitool raw 0x30 0x15 0x01 0x00 0x01

3.  busctl call xyz.openbmc_project.CallbackManager
   /xyz/openbmc_project/CallbackManager
   xyz.openbmc_project.CallbackManager RetriggerLEDUpdate

4. busctl call xyz.openbmc_project.LED.Controller.status_green
 /xyz/openbmc_project/led/physical/status_green
 org.freedesktop.DBus.Properties Get ss
 xyz.openbmc_project.Led.Physical State

v s "xyz.openbmc_project.Led.Physical.Action.Blink"

busctl call xyz.openbmc_project.LED.Controller.status_amber
 /xyz/openbmc_project/led/physical/status_amber
org.freedesktop.DBus.Properties Get ss
xyz.openbmc_project.Led.Physical State

v s "xyz.openbmc_project.Led.Physical.Action.Off"

Signed-off-by: sunitakx <sunitax.kumari@linux.intel.com>
Change-Id: I2f66fbddcd8fd0a9fc0825d44f8cd41c640d7882
1 file changed
tree: 129371a458de386482f14445ae828e9d41c8290c
  1. callback-manager/
  2. hsbp-manager/
  3. .gitignore
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. README.md
README.md

s2600wf-misc