Skip other fault checks if inputFault count bump

If an input fault was seen and we have started bumping the counter, do
not bother checking the other faults that occur while power is supposed
to be on. The power good will be de-asserted, than fans will likely
start spinning down, we cannot have an input over-current with no input
current, etc.

Resolves: openbmc/openbmc#2873

Change-Id: Ic8a14cbd0472229b618f63c9e829bc5468d44100
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/power-supply/power_supply.cpp b/power-supply/power_supply.cpp
index 15fc432..b26c96b 100644
--- a/power-supply/power_supply.cpp
+++ b/power-supply/power_supply.cpp
@@ -154,7 +154,7 @@
 
             checkInputFault(statusWord);
 
-            if (powerOn && !faultFound)
+            if (powerOn && (inputFault == 0) && !faultFound)
             {
                 checkFanFault(statusWord);
                 checkTemperatureFault(statusWord);