firmware: arm_scmi: Add helper to trace bad messages
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 25 Mar 2024 20:46:17 +0000 (20:46 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 26 Mar 2024 11:19:38 +0000 (11:19 +0000)
commit5dc0e0b1f0ea2b55031f84a365962b9b45869b98
tree15bc3d822140c30abe63c3ef6f5ee019377649c7
parentda251ce210617fa31aa2a65ba7f28e1c584a1938
firmware: arm_scmi: Add helper to trace bad messages

Upon reception of malformed and unexpected timed-out SCMI messages, it is
not possible to trace those bad messages in their entirety, because usually
we cannot even retrieve the payload, or it is just not reliable.

Add a helper to trace at least the content of the header of the received
message while associating a meaningful tag and error code.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240325204620.1437237-3-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