diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-08-18 18:29:41 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-08-23 18:56:37 +0530 |
commit | 2dc9b1a24f753270eae01be8b71c0c89a3c669cc (patch) | |
tree | 8a9186650d1402515637a8ee4e1bc6b797dd1a0b /occ_status.cpp | |
parent | 715595b64ead477ceae235208a290808234cdcf0 (diff) | |
download | openpower-occ-control-2dc9b1a24f753270eae01be8b71c0c89a3c669cc.tar.gz openpower-occ-control-2dc9b1a24f753270eae01be8b71c0c89a3c669cc.zip |
Enable OCC error monitoring
Fixes openbmc/openbmc#2165
Change-Id: I93f317a32c910f279003fa0fce6ae2d597f90312
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'occ_status.cpp')
-rw-r--r-- | occ_status.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/occ_status.cpp b/occ_status.cpp index 94b8c4c..15ffbc8 100644 --- a/occ_status.cpp +++ b/occ_status.cpp @@ -28,17 +28,21 @@ bool Status::occActive(bool value) // Bind the device device.bind(); - // And watch for errors - // Commenting until we solve the occ error monitoring issue - // TODO: openbmc/openbmc#2126 - // device.addErrorWatch(); + // Call into Manager to let know that we have bound + if (this->callBack) + { + this->callBack(value); + } } else { - // Stop watching for errors - // Commenting until we solve the occ error monitoring issue - // TODO: openbmc/openbmc#2126 - // device.removeErrorWatch(); + // Call into Manager to let know that we will unbind. + // Need to do this before doing un-bind since it will + // result in slave error if Master is un-bound + if (this->callBack) + { + this->callBack(value); + } // Do the unbind. device.unBind(); |