blob: b300234aa7c49622eee168f5df05966ac5bd5e20 [file] [log] [blame]
Matt Spinlere2195392017-02-01 16:25:56 -06001From 15d14532aa66108716d5ffb6bd8222277f9451ab Mon Sep 17 00:00:00 2001
2From: Andrew Geissler <andrewg@us.ibm.com>
3Date: Fri, 27 Jan 2017 16:29:28 -0600
4Subject: [PATCH] Quick fix to ensure we run mbx workaround on reboots
5
6See openbmc/openbmc#1045 for more details
7
8Change-Id: I55ce69a7cb05bc4274bc4af70cee5d387492f76e
9Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
10---
11 chassis_control.py | 5 +++++
12 1 file changed, 5 insertions(+)
13
14diff --git a/chassis_control.py b/chassis_control.py
15index 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--
382.11.0
39