projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076dab2
)
intel_scu_ipc: Length fix
author
Alan Cox
<alan@linux.intel.com>
Tue, 1 Jun 2010 11:51:00 +0000
(12:51 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 1 Jun 2010 15:40:47 +0000
(08:40 -0700)
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>
drivers/platform/x86/intel_scu_ipc.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_scu_ipc.c
b/drivers/platform/x86/intel_scu_ipc.c
index
576c3ed
..
40658e3
100644
(file)
--- a/
drivers/platform/x86/intel_scu_ipc.c
+++ b/
drivers/platform/x86/intel_scu_ipc.c
@@
-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++)