Make PLDM call to reset OCCs an asynchronous call
The current signal to reset the OCCs/PM Complex waits for a response
from hostboot. If there is an issue with the connection to Hostboot,
the pldm_send_recv call will hang. This code change will make the call
asynchronous. If hostboot recovers, a notification indicating the OCCs
are active will get re-sent.
Change-Id: I809f00fd03277d29749989cd1b546525072d3adf
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/pldm.hpp b/pldm.hpp
index ccfb3f9..6e3db09 100644
--- a/pldm.hpp
+++ b/pldm.hpp
@@ -235,9 +235,11 @@
/** @brief Send the PLDM request
*
- * @param[in] - the request data
+ * @param[in] request - the request data
+ * @param[in] async - false: wait for response, true: return immediately
*/
- void sendPldm(const std::vector<uint8_t>& request);
+ void sendPldm(const std::vector<uint8_t>& request,
+ const bool async = false);
};
} // namespace pldm