]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: Use bound iterators to minimize discovered rates
authorCristian Marussi <cristian.marussi@arm.com>
Fri, 8 May 2026 15:32:58 +0000 (16:32 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 12 May 2026 14:29:11 +0000 (15:29 +0100)
commit26d04d592a47890d409d1bf77b9cbf5920f2efc8
tree0dd59427de9de0bfcf9e7a633690f8c8746fedc8
parent3065e26dac525696bd0ef2fdaff7724b1bd345f9
firmware: arm_scmi: Use bound iterators to minimize discovered rates

Clock rates are guaranteed to be returned in ascending order for SCMI clock
protocol versions greater than 1.0: in such a case, use bounded iterators
to minimize the number of message exchanges needed to discover min and max
rate.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://patch.msgid.link/20260508153300.2224715-14-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/clock.c