Commit 11ed5cf0 authored by Sudeep Holla's avatar Sudeep Holla

firmware: arm_scmi: reset: fix reset_state assignment in scmi_domain_reset

Fix the copy paste typo that incorrectly assigns domain_id with the
passed 'state' parameter instead of reset_state.

Fixes: 95a15d80 ("firmware: arm_scmi: Add RESET protocol in SCMI v2.0")
Reported-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent c8ae9c2d
...@@ -150,7 +150,7 @@ static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, ...@@ -150,7 +150,7 @@ static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain,
dom = t->tx.buf; dom = t->tx.buf;
dom->domain_id = cpu_to_le32(domain); dom->domain_id = cpu_to_le32(domain);
dom->flags = cpu_to_le32(flags); dom->flags = cpu_to_le32(flags);
dom->domain_id = cpu_to_le32(state); dom->reset_state = cpu_to_le32(state);
if (rdom->async_reset) if (rdom->async_reset)
ret = scmi_do_xfer_with_response(handle, t); ret = scmi_do_xfer_with_response(handle, t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment