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

Commit 2e8949f0 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

intel_scu_ipc: Length fix



Commands with data must set the length in the message.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 076dab23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -524,7 +524,7 @@ int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
	for (i = 0; i < inlen; i++)
		ipc_data_writel(*in++, 4 * i);

	ipc_command(cmd << 12 | sub);
	ipc_command((cmd << 12) | sub | (inlen << 18));
	err = busy_loop();

	for (i = 0; i < outlen; i++)