Revert "SPM: Remove tfm_spm_get_msg_buffer_from_conn_handle"
This reverts commit ae8965e14264973890a9a03c061264c750703d06.
Revert because it was merged by accident without enough review.
Change-Id: I454513b4a157312b658473a6c79ee9ef410245ce
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.h b/secure_fw/spm/cmsis_psa/spm_ipc.h
index ac37b56..ed04f05 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.h
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.h
@@ -276,6 +276,17 @@
struct tfm_msg_body_t *tfm_spm_get_msg_from_handle(psa_handle_t msg_handle);
/**
+ * \brief Get message context by connect handle.
+ *
+ * \param[in] conn_handle Service connect handle.
+ *
+ * \return The message body context pointer
+ * \ref msg_body_t structures
+ */
+struct tfm_msg_body_t *
+ tfm_spm_get_msg_buffer_from_conn_handle(struct tfm_conn_handle_t *conn_handle);
+
+/**
* \brief Fill the message for PSA client call.
*
* \param[in] msg Service Message Queue buffer pointer