提交 f6ca5059 编写于 作者: C Cristian Marussi 提交者: Sudeep Holla

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: NCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20221222183823.518856-2-cristian.marussi@arm.comSigned-off-by: NSudeep Holla <sudeep.holla@arm.com>
上级 1b929c02
...@@ -910,6 +910,8 @@ static int do_xfer(const struct scmi_protocol_handle *ph, ...@@ -910,6 +910,8 @@ static int do_xfer(const struct scmi_protocol_handle *ph,
xfer->hdr.protocol_id, xfer->hdr.seq, xfer->hdr.protocol_id, xfer->hdr.seq,
xfer->hdr.poll_completion); xfer->hdr.poll_completion);
/* Clear any stale status */
xfer->hdr.status = SCMI_SUCCESS;
xfer->state = SCMI_XFER_SENT_OK; xfer->state = SCMI_XFER_SENT_OK;
/* /*
* Even though spinlocking is not needed here since no race is possible * Even though spinlocking is not needed here since no race is possible
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册