firmware: arm_scmi: Track number of inflight SCMI transfers
authorPhilip Radford <philip.radford@arm.com>
Mon, 30 Jun 2025 10:55:42 +0000 (10:55 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 3 Jul 2025 15:15:44 +0000 (16:15 +0100)
commita9cd861e61ae80b441af87f332bc3f44aa0b7c02
treec35026a47cbff72fa56dfef48d0f0780448a8a15
parent555e9174ef06b7bfc54a3127a8d8fc47d55d04f4
firmware: arm_scmi: Track number of inflight SCMI transfers

Add a new debug counter, `XFERS_INFLIGHT`, to track the number of
currently active in-flight SCMI message transfers. This helps in
understanding system behavior and diagnosing potential issues with
pending or stuck messages.

The counter is incremented when a transfer is registered as in-flight,
and decremented when it completes and is released.

It is automatically added to debugfs for visibility through SCMI debugfs.

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