]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: Refactor reset domain handling
authorArtem Shimko <a.shimko.dev@gmail.com>
Sun, 23 Nov 2025 16:35:57 +0000 (19:35 +0300)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 16 Dec 2025 12:27:26 +0000 (12:27 +0000)
commitf6753869a25ebf0022fe531a31e4fd2435d5e1a5
treeb04c60720b83be3ea42a624be3edce765059e5ac
parent78b74136affd7aabb7a578b86e26099872861841
firmware: arm_scmi: Refactor reset domain handling

Introduce scmi_reset_domain_lookup() to centralize domain ID validation
and unify error reporting behaviour across the SCMI reset protocol.

All reset domain operations are updated to use the new helper, removing
duplicated validation logic and ensuring consistent handling of invalid
domain IDs and lookup failures. This simplifies the internal flow and
improves robustness of the reset protocol implementation.

Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
Message-Id: <20251123163557.230530-1-a.shimko.dev@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/reset.c