Matt Spinler | e219539 | 2017-02-01 16:25:56 -0600 | [diff] [blame^] | 1 | From 15d14532aa66108716d5ffb6bd8222277f9451ab Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrew Geissler <andrewg@us.ibm.com> |
| 3 | Date: Fri, 27 Jan 2017 16:29:28 -0600 |
| 4 | Subject: [PATCH] Quick fix to ensure we run mbx workaround on reboots |
| 5 | |
| 6 | See openbmc/openbmc#1045 for more details |
| 7 | |
| 8 | Change-Id: I55ce69a7cb05bc4274bc4af70cee5d387492f76e |
| 9 | Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> |
| 10 | --- |
| 11 | chassis_control.py | 5 +++++ |
| 12 | 1 file changed, 5 insertions(+) |
| 13 | |
| 14 | diff --git a/chassis_control.py b/chassis_control.py |
| 15 | index 3637d82..eae7875 100644 |
| 16 | --- a/chassis_control.py |
| 17 | +++ b/chassis_control.py |
| 18 | @@ -4,6 +4,7 @@ import gobject |
| 19 | import dbus |
| 20 | import dbus.service |
| 21 | import dbus.mainloop.glib |
| 22 | +import time |
| 23 | from obmc.dbuslib.bindings import get_dbus, DbusProperties, DbusObjectManager |
| 24 | |
| 25 | DBUS_NAME = 'org.openbmc.control.Chassis' |
| 26 | @@ -181,6 +182,10 @@ class ChassisControlObject(DbusProperties, DbusObjectManager): |
| 27 | |
| 28 | if (state_name == "HOST_POWERED_OFF" and self.Get(DBUS_NAME, |
| 29 | "reboot") == 1): |
| 30 | + # TODO - Hack to give time for mbx to reload during |
| 31 | + # power off phase of a reboot |
| 32 | + print "Sleeping to give mbx time to reload" |
| 33 | + time.sleep(10) |
| 34 | self.powerOn() |
| 35 | |
| 36 | def power_button_signal_handler(self): |
| 37 | -- |
| 38 | 2.11.0 |
| 39 | |