Skip to content

Commit f6ca505

Browse files
cris-masudeep-holla
authored andcommitted
firmware: arm_scmi: Clear stale xfer->hdr.status
Stale error status reported from a previous message transaction must be cleared before starting a new transaction to avoid being confusingly reported in the following SCMI message dump traces. Signed-off-by: Cristian Marussi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 1b929c0 commit f6ca505

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/arm_scmi/driver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,8 @@ static int do_xfer(const struct scmi_protocol_handle *ph,
910910
xfer->hdr.protocol_id, xfer->hdr.seq,
911911
xfer->hdr.poll_completion);
912912

913+
/* Clear any stale status */
914+
xfer->hdr.status = SCMI_SUCCESS;
913915
xfer->state = SCMI_XFER_SENT_OK;
914916
/*
915917
* Even though spinlocking is not needed here since no race is possible

0 commit comments

Comments
 (0)