From: Cristian Marussi <cristian.marussi@arm.com>
To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: sudeep.holla@arm.com, cristian.marussi@arm.com
Subject: [PATCH 1/5] firmware: arm_scmi: Clear stale xfer->hdr.status
Date: Thu, 22 Dec 2022 18:38:19 +0000 [thread overview]
Message-ID: <20221222183823.518856-2-cristian.marussi@arm.com> (raw)
In-Reply-To: <20221222183823.518856-1-cristian.marussi@arm.com>
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 <cristian.marussi@arm.com>
---
drivers/firmware/arm_scmi/driver.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c
index f818d00bb2c6..ffdad59ec81f 100644
--- a/drivers/firmware/arm_scmi/driver.c
+++ b/drivers/firmware/arm_scmi/driver.c
@@ -910,6 +910,8 @@ static int do_xfer(const struct scmi_protocol_handle *ph,
xfer->hdr.protocol_id, xfer->hdr.seq,
xfer->hdr.poll_completion);
+ /* Clear any stale status */
+ xfer->hdr.status = SCMI_SUCCESS;
xfer->state = SCMI_XFER_SENT_OK;
/*
* Even though spinlocking is not needed here since no race is possible
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-12-22 18:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 18:38 [PATCH 0/5] Miscellaneous SCMI fixes for v6.2 Cristian Marussi
2022-12-22 18:38 ` Cristian Marussi [this message]
2022-12-22 18:38 ` [PATCH 2/5] firmware: arm_scmi: Harden shared memory access in fetch_response Cristian Marussi
2022-12-22 18:38 ` [PATCH 3/5] firmware: arm_scmi: Harden shared memory access in fetch_notification Cristian Marussi
2022-12-22 18:38 ` [PATCH 4/5] dt-bindings: firmware: arm,scmi: Add support for syspower protocol Cristian Marussi
2022-12-23 10:11 ` Krzysztof Kozlowski
2022-12-23 10:37 ` Cristian Marussi
2022-12-23 11:22 ` Krzysztof Kozlowski
2023-01-03 10:08 ` Cristian Marussi
2022-12-22 18:38 ` [PATCH 5/5] firmware: arm_scmi: Fix virtio channels cleanup on shutdown Cristian Marussi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221222183823.518856-2-cristian.marussi@arm.com \
--to=cristian.marussi@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudeep.holla@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox