diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2022-02-17 13:12:32 +0000 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2022-02-21 10:36:48 +0000 |
commit | b7bd36f2e9430a58aefdc326f8e6653e9b000243 (patch) | |
tree | 9fba0bca88a81f57472795f4d4a8383552774fef /include/linux/scmi_protocol.h | |
parent | 05976c5f3bff8f8b5230da4b39f7cd6dfba9943e (diff) |
firmware: arm_scmi: Add atomic support to clock protocol
Introduce new _atomic variant for SCMI clock protocol operations related
to enable disable operations: when an atomic operation is required the xfer
poll_completion flag is set for that transaction.
Link: https://lore.kernel.org/r/20220217131234.50328-7-cristian.marussi@arm.com
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scmi_protocol.h')
-rw-r--r-- | include/linux/scmi_protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index fdf6bd83cc59..306e576835f8 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -82,6 +82,9 @@ struct scmi_clk_proto_ops { u64 rate); int (*enable)(const struct scmi_protocol_handle *ph, u32 clk_id); int (*disable)(const struct scmi_protocol_handle *ph, u32 clk_id); + int (*enable_atomic)(const struct scmi_protocol_handle *ph, u32 clk_id); + int (*disable_atomic)(const struct scmi_protocol_handle *ph, + u32 clk_id); }; /** |