devfreq: spdm: Fix call to TZ spdm driver
The TZ SPDM driver mandates the number of arguments be constant for a given command id. This patch allows the spdm driver to communicate with the TZ driver correctly. Change-Id: Id3cfd2490039c4abde6d5381859d8facf545e85e Signed-off-by: Dan Sneddon <dsneddon@codeaurora.org> Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
This commit is contained in:
parent
f0da725637
commit
2aec94e3b5
1 changed files with 5 additions and 1 deletions
|
@ -278,7 +278,11 @@ int __spdm_scm_call(struct spdm_args *args, int num_args)
|
||||||
sizeof(args->ret));
|
sizeof(args->ret));
|
||||||
} else {
|
} else {
|
||||||
struct scm_desc desc = {0};
|
struct scm_desc desc = {0};
|
||||||
desc.arginfo = SCM_ARGS(num_args);
|
/*
|
||||||
|
* Need to hard code this, this is a requirement from TZ syscall
|
||||||
|
* interface.
|
||||||
|
*/
|
||||||
|
desc.arginfo = SCM_ARGS(6);
|
||||||
memcpy(desc.args, args->arg,
|
memcpy(desc.args, args->arg,
|
||||||
COPY_SIZE(sizeof(desc.args), sizeof(args->arg)));
|
COPY_SIZE(sizeof(desc.args), sizeof(args->arg)));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue