]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: Add clock determine_rate operation
authorCristian Marussi <cristian.marussi@arm.com>
Fri, 8 May 2026 15:32:47 +0000 (16:32 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 12 May 2026 14:29:10 +0000 (15:29 +0100)
commitecde921eb46022acbdbfff2ad4e4c6e6d0493430
tree5c4a830cb0a83c5a649f79337ebd9d8a345e8bc0
parentd0c81a38d06d446d341532700b3a4a43d3b00eb1
firmware: arm_scmi: Add clock determine_rate operation

Add a clock operation to help determining the effective rate, closest to
the required one, that a specific clock can support.

Calculation is currently performed kernel side and the logic is taken
directly from the SCMI Clock driver: embedding the determinate rate logic
in the protocol layer enables simplifications in the SCMI Clock protocol
interface and will more easily accommodate further evolutions where such
determine_rate logic into is optionally delegated to the platform SCMI
server.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260508153300.2224715-3-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/clock.c
include/linux/scmi_protocol.h