callback-manager: match thersholdAsserted signal for updateLedStatus

Issue: For ADC sensors, LED state did not change after de-assert.

Fix: Added a match for thresholdAsserted signal to capture the de-assert
event for powerDelayed threshold sensors and update the LED state
accordingly.

Tested:

ipmitool sdr elist | grep P3VBAT
P3VBAT           | 47h | ok  |  0.1 | 3.14 Volts

Initial state:
ipmitool raw 0x4 0x27 0x47
 1b 7b 6b 00 a4 a6 00

Initial LED state:
ipmitool raw 0x30 0xb0
 20 --> Solid Green

Assert events:

1. Change the Lower Non-Critical threshold
ipmitool raw 0x04 0x26 0x47 0x1b 0xa1 0x6b 0x00 0xa4 0xa6 0x00

ipmitool raw 0x4 0x27 0x47
 1b a1 6b 00 a4 a6 00

ipmitool raw 0x30 0xb0
 10 --> Blinking Green.

2. Change the Lower critical threshold
ipmitool raw 0x04 0x26 0x47 0x1b 0xa1 0xa1 0x00 0xa4 0xa6 0x00

ipmitool raw 0x4 0x27 0x47
 1b a1 a1 00 a4 a6 00

ipmitool raw 0x30 0xb0
 04 --> Blinking Amber

De-assert events:

1. Restore Lower critical threshold.
ipmitool raw 0x04 0x26 0x47 0x1b 0xa1 0x6b 0x00 0xa4 0xa6 0x00

ipmitool raw 0x4 0x27 0x47
 1b a1 6b 00 a4 a6 00

ipmitool raw 0x30 0xb0
 10 --> Blinking Green

2. Restore Lower Non-Critical Threshold.
ipmitool raw 0x04 0x26 0x47 0x1b 0x7b 0x6b 0x00 0xa4 0xa6 0x00

ipmitool raw 0x4 0x27 0x47
 1b 7b 6b 00 a4 a6 00

ipmitool raw 0x30 0xb0
 20 --> Solid Green

ipmitool sel list
1 |  Pre-Init  |0000006680| Voltage #0x47 | Lower Non-critical going
low  | Asserted
2 |  Pre-Init  |0000006944| Voltage #0x47 | Lower Critical going low
  | Asserted
3 |  Pre-Init  |0000007218| Voltage #0x47 | Lower Critical going low
  | Deasserted
4 |  Pre-Init  |0000007345| Voltage #0x47 | Lower Non-critical going
low  | Deasserted

Signed-off-by: Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com>
Change-Id: I505871913bbbcfc7ba174d9243c736561818ee0f
1 file changed
tree: ac5aa4e72a6903f882dcd0fd3e2544bfb2d90a96
  1. callback-manager/
  2. hsbp-manager/
  3. .gitignore
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. README.md
README.md

s2600wf-misc