diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2019-05-23 14:41:35 +0900 |
---|---|---|
committer | Masahisa Kojima <masahisa.kojima@linaro.org> | 2019-05-23 14:41:35 +0900 |
commit | 292bc551930f3472cce0930f392a6aeeca5eeb88 (patch) | |
tree | d3b39e2bcd8a6e6889d46b8ff0eeef66c56bdc7d | |
parent | b27c7d6f0507c89189a22f695e743a0ec4ff3357 (diff) |
drivers: scmi: scmi_sq: Modify wrong payload length
Payload length of the get dram mapping information message is 0.
The mbx_mem->len parameter should be 4, it only contains
message header.
Fixes: b67d202 ("plat/synquacer: enable SCMI support")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Change-Id: If1cd4c855da2dc5dc4b6da3bea152b8441971de7
-rw-r--r-- | drivers/arm/css/scmi/vendor/scmi_sq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/arm/css/scmi/vendor/scmi_sq.c b/drivers/arm/css/scmi/vendor/scmi_sq.c index 2ae7ca15..f1854248 100644 --- a/drivers/arm/css/scmi/vendor/scmi_sq.c +++ b/drivers/arm/css/scmi/vendor/scmi_sq.c @@ -18,6 +18,8 @@ /* SCMI messge ID to get the available DRAM region */ #define SCMI_VENDOR_EXT_MEMINFO_GET_MSG 0x3 +#define SCMI_VENDOR_EXT_MEMINFO_GET_MSG_LEN 4 + /* * API to get the available DRAM region */ @@ -35,7 +37,7 @@ int scmi_get_draminfo(void *p, struct draminfo *info) mbx_mem = (mailbox_mem_t *)(ch->info->scmi_mbx_mem); mbx_mem->msg_header = SCMI_MSG_CREATE(SCMI_SYS_VENDOR_EXT_PROTO_ID, SCMI_VENDOR_EXT_MEMINFO_GET_MSG, token); - mbx_mem->len = 8; + mbx_mem->len = SCMI_VENDOR_EXT_MEMINFO_GET_MSG_LEN; mbx_mem->flags = SCMI_FLAG_RESP_POLL; scmi_send_sync_command(ch); |