summaryrefslogtreecommitdiff
path: root/include/scmi_agent.h
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2022-02-21 09:22:40 +0100
committerTom Rini <trini@konsulko.com>2022-03-02 17:42:06 -0500
commit6983710a31a0d6fb782eb0ea18b9325e4075f4c3 (patch)
tree41db4e7af39822d4ab89a2eb18326d12475f9da9 /include/scmi_agent.h
parent41d62e2f275c44fd47bcd6d856608528006b082b (diff)
scmi: change parameter dev in devm_scmi_process_msg
Changes devm_scmi_process_msg() first argument from target parent device to current SCMI device and lookup the SCMI agent device among SCMI device parents for find the SCMI agent operator needed for communication with the firmware. This change is needed in order to support CCF in clk_scmi driver unless what CCF will fail to find the right udevice related to exposed SCMI clocks. This patch allows to simplify the caller sequence, using SCMI device reference as parameter instead of knowing SCMI uclass topology. This change also adds some protection in case devm_scmi_process_msg() API function is called for an invalid device type. Cc: Lukasz Majewski <lukma@denx.de> Cc: Sean Anderson <seanga2@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'include/scmi_agent.h')
-rw-r--r--include/scmi_agent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scmi_agent.h b/include/scmi_agent.h
index 5015c06be9..18bcd48a9d 100644
--- a/include/scmi_agent.h
+++ b/include/scmi_agent.h
@@ -51,7 +51,7 @@ struct scmi_msg {
* Caller sets scmi_msg::out_msg_sz to the output message buffer size.
* On return, scmi_msg::out_msg_sz stores the response payload size.
*
- * @dev: SCMI agent device
+ * @dev: SCMI device
* @msg: Message structure reference
* Return: 0 on success and a negative errno on failure
*/