]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: Harden clock parents discovery
authorCristian Marussi <cristian.marussi@arm.com>
Fri, 8 May 2026 15:32:53 +0000 (16:32 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 12 May 2026 14:29:11 +0000 (15:29 +0100)
commitbda40491e0cedcdf5b25a5e12d21d105cd4033bf
tree9f4e6972ce0689e256c0da1bd72ca49bf703406b
parent62ba967595e0b2599768f886851ba5e0d4bfb55b
firmware: arm_scmi: Harden clock parents discovery

Fix clock parents enumeration to account only for effectively discovered
parents during enumeration, avoiding to trust the total number of parents
declared upfront by the platform.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
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-9-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/clock.c