[PATCH v4 0/2] Add compatibility for scmi clock protocol version 3.0

Kamlesh Gurudasani
2025-11-04T11:20:04Z

Clock version 3.0 specified in ARM SCMI Platform design document
v3.2, adds extended_config_val parameter in CLOCK_CONFIG_SET.

The SCMI server with clock version 3.0 rejects the message if
it doesn't have this field.

Add support so that both SCMI server with clock version 2.0 and 3.0
can be handled.

While at it, fix the set_parent support for non CCF flow.

Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
---
Changes in v4:
- Added seperate handling for CCF and non CCF versions
- Link to v3: https://lore.kernel.org/r/20250819-b4-scmi-v1-v3-0-360145076b3b@ti.com

Changes in v3:
- Removed a checkpatch warning, which helped avoid reuse of code
- Link to v2: https://lore.kernel.org/r/20250818-b4-scmi-v1-v2-0-e0351c4d839e@ti.com

Changes in v2:
- Fixed the code according to review comments
- Link to v1: https://lore.kernel.org/r/20250813-b4-scmi-v1-v1-0-bef20fc32d4b@ti.com

---
Kamlesh Gurudasani (2):
clk: scmi: fix set_parent support when CCF is not being used
clk: scmi: add compatibility for clock version 3.0 and onwards

drivers/clk/clk_scmi.c | 54 ++++++++++++++++++++++++++++++++++++++++--------------
include/scmi_protocols.h | 6 ++++++
2 files changed, 46 insertions(+), 14 deletions(-)
---
base-commit: 4e4a9de31de2a5f395ee25c59e4026422fbcb27e
change-id: 20250813-b4-scmi-v1-b3deb87fa712

Best regards,
--
Kamlesh Gurudasani <kamlesh@ti.com>