Skip to content

Commit 11ed5cf

Browse files
committed
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: 95a15d8 ("firmware: arm_scmi: Add RESET protocol in SCMI v2.0") Reported-by: Etienne Carriere <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent c8ae9c2 commit 11ed5cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/arm_scmi/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain,
150150
dom = t->tx.buf;
151151
dom->domain_id = cpu_to_le32(domain);
152152
dom->flags = cpu_to_le32(flags);
153-
dom->domain_id = cpu_to_le32(state);
153+
dom->reset_state = cpu_to_le32(state);
154154

155155
if (rdom->async_reset)
156156
ret = scmi_do_xfer_with_response(handle, t);

0 commit comments

Comments
 (0)