Skip to content

Commit

Permalink
intel_scu_ipc: Length fix
Browse files Browse the repository at this point in the history
Commands with data must set the length in the message.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 1, 2010
1 parent 076dab2 commit 2e8949f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_scu_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 2e8949f

Please sign in to comment.