firmware: arm_scmi: Add support for debug counter decrement
authorPhilip Radford <philip.radford@arm.com>
Mon, 30 Jun 2025 10:55:41 +0000 (10:55 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 3 Jul 2025 15:14:31 +0000 (16:14 +0100)
commit555e9174ef06b7bfc54a3127a8d8fc47d55d04f4
tree994dd4207940a9b8a581b6eda4d8c69922e30f33
parentad28fc31dd702871764e9294d4f2314ad78d24a9
firmware: arm_scmi: Add support for debug counter decrement

Introduce a new `scmi_dec_count` helper to complement the existing
`scmi_inc_count`, allowing controlled decrement of SCMI debug counters.

This provides symmetry in debug counter management and enables
accurate tracking of counters that may both increase and decrease,
such as those used for in-flight message tracking.

Only active when CONFIG_ARM_SCMI_DEBUG_COUNTERS is enabled.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Philip Radford <philip.radford@arm.com>
Message-Id: <20250630105544.531723-2-philip.radford@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h