diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2019-09-09 16:21:30 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2019-09-18 13:42:16 +0100 |
commit | 11ed5cf064beac3ca345bb75fdf2429e03ac106a (patch) | |
tree | ed40ed5ac001b9370fd958341c3e73be38f6afd2 /drivers/firmware | |
parent | c8ae9c2da1cc5d18b6d51d10160508a3dc3436bf (diff) | |
download | linux-11ed5cf064beac3ca345bb75fdf2429e03ac106a.tar.bz2 |
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: 95a15d80aa0d ("firmware: arm_scmi: Add RESET protocol in SCMI v2.0")
Reported-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/arm_scmi/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/reset.c b/drivers/firmware/arm_scmi/reset.c index 64cc81915581..ab42c21c5517 100644 --- a/drivers/firmware/arm_scmi/reset.c +++ b/drivers/firmware/arm_scmi/reset.c @@ -150,7 +150,7 @@ static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, dom = t->tx.buf; dom->domain_id = cpu_to_le32(domain); dom->flags = cpu_to_le32(flags); - dom->domain_id = cpu_to_le32(state); + dom->reset_state = cpu_to_le32(state); if (rdom->async_reset) ret = scmi_do_xfer_with_response(handle, t); |