Add check for faultFound to power fault checks

The faultFound flag was added in an earlier series of commits. This was
intended to limit the number of faults leading up to error log entries.
During the checks for when the system is powered on, a number of the
faults (OC, OV, OT, etc.) can ultimately lead to other faults,
especially the UNIT_IS_OFF fault. For instance, if an overcurrent fault
is detected, it likely means that the power supply will turn itself off.
When that fault is seen and logged, the faultFound will be set to true.
If that is the case, we do not need to also log a fault for the PGOOD
being off or the UNIT_IS_OFF bit being on, we already know a fault has
occurred. The metadata should capture the resulting end state.

Change-Id: I27ea7e77d492597a3581026285c7e552a1297a60
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
1 file changed
tree: 8645be5f7b815192920e6cbf4f03e0e085b260c3
  1. org/
  2. power-sequencer/
  3. power-supply/
  4. test/
  5. .gitignore
  6. argument.hpp
  7. bootstrap.sh
  8. configure.ac
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. event.hpp
  13. file.hpp
  14. LICENSE
  15. Makefile.am
  16. names_values.hpp
  17. pmbus.cpp
  18. pmbus.hpp
  19. README.md
  20. timer.cpp
  21. timer.hpp
  22. utility.cpp
  23. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.