summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/arm_scmi/driver.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2021-08-03 14:10:10 +0100
committerSudeep Holla <sudeep.holla@arm.com>2021-08-05 10:23:21 +0100
commit63b282f172717609136b51571bcc1f74d92d2be6 (patch)
tree4c353a830b38929091859f4ea6060b3ce49de1a9 /drivers/firmware/arm_scmi/driver.c
parentbdb8742dc6f7c599c3d61959234fe4c23638727b (diff)
downloadlinux-63b282f172717609136b51571bcc1f74d92d2be6.tar.gz
linux-63b282f172717609136b51571bcc1f74d92d2be6.tar.bz2
linux-63b282f172717609136b51571bcc1f74d92d2be6.zip
firmware: arm_scmi: Add support for type handling in common functions
Add SCMI type handling to pack/unpack_scmi_header common helper functions. Initialize hdr.type properly when initializing a command xfer. Link: https://lore.kernel.org/r/20210803131024.40280-2-cristian.marussi@arm.com Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/driver.c')
-rw-r--r--drivers/firmware/arm_scmi/driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c
index 9b2e8d42a992..a7a789c5d101 100644
--- a/drivers/firmware/arm_scmi/driver.c
+++ b/drivers/firmware/arm_scmi/driver.c
@@ -566,6 +566,7 @@ static int xfer_get_init(const struct scmi_protocol_handle *ph,
xfer->tx.len = tx_size;
xfer->rx.len = rx_size ? : info->desc->max_msg_size;
+ xfer->hdr.type = MSG_TYPE_COMMAND;
xfer->hdr.id = msg_id;
xfer->hdr.poll_completion = false;