pldm: Fix HRESET handling and incorrect entity ID
The HRESET state signal wasn't being handled, since the message
sensor offsets are the same for OCC and SBE; both maps need to be
checked and action taken if the sensor ID is found.
In addition, the OCC reset effecter was incorrectly using the
processor module entity ID, rather than the processor.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: I9e601560e1144101ce6515809a265fdd7db01b06
diff --git a/pldm.hpp b/pldm.hpp
index 3add821..2f861b8 100644
--- a/pldm.hpp
+++ b/pldm.hpp
@@ -88,13 +88,12 @@
/** @brief Fetch the OCC/SBE state effecter PDRs and populate the cache
* with OCC/SBE instance to EffecterID information.
*
- * @param[in] entityId - the entity ID to query
* @param[in] stateSetId - the state set ID to look for
* @param[out] instanceToEffecterMap - map of instance to effecterID
* @param[out] count - sensor offset of interested state set ID
* @param[out] stateIdPos - position of the stateSetID
*/
- void fetchEffecterInfo(uint16_t entityId, uint16_t stateSetId,
+ void fetchEffecterInfo(uint16_t stateSetId,
InstanceToEffecter& instanceToEffecterMap,
CompositeEffecterCount& count, uint8_t& stateIdPos);