Skip to content

Commit

Permalink
[device/celestica-e1031]: update reboot cause api to support more causes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Sep 18, 2020
1 parent 3f43f9b commit 2ab1338
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,12 @@ def get_reboot_cause(self):
reboot_cause = self.REBOOT_CAUSE_POWER_LOSS
elif hw_reboot_cause == "0x33":
reboot_cause = self.REBOOT_CAUSE_WATCHDOG
elif hw_reboot_cause == "0x88":
reboot_cause = self.REBOOT_CAUSE_THERMAL_OVERLOAD_CPU
elif hw_reboot_cause == "0x99":
reboot_cause = self.REBOOT_CAUSE_THERMAL_OVERLOAD_ASIC
else:
reboot_cause = self.REBOOT_CAUSE_HARDWARE_OTHER
reboot_cause = self.REBOOT_CAUSE_NON_HARDWARE
description = 'Unknown reason'

return (reboot_cause, description)
Expand Down

0 comments on commit 2ab1338

Please sign in to comment.