Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76fb37be authored by Dan Sneddon's avatar Dan Sneddon Committed by Matt Wagantall
Browse files

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: default avatarDan Sneddon <dsneddon@codeaurora.org>
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 60af2749
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -278,7 +278,11 @@ int __spdm_scm_call(struct spdm_args *args, int num_args)
				sizeof(args->ret));
	} else {
		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,
			COPY_SIZE(sizeof(desc.args), sizeof(args->arg)));