]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Account for failed debug initialization
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 14 Oct 2025 11:53:44 +0000 (12:53 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 15 Oct 2025 14:24:29 +0000 (15:24 +0100)
commit2290ab43b9d8eafb8046387f10a8dfa2b030ba46
treece1bb317fe7347785589f5afe7fc2c594376fb78
parent3a8660878839faadb4f1a6dd72c3179c1df56787
firmware: arm_scmi: Account for failed debug initialization

When the SCMI debug subsystem fails to initialize, the related debug root
will be missing, and the underlying descriptor will be NULL.

Handle this fault condition in the SCMI debug helpers that maintain
metrics counters.

Fixes: 0b3d48c4726e ("firmware: arm_scmi: Track basic SCMI communication debug metrics")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20251014115346.2391418-1-cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c