intel_scu_ipc: Length fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, June 1, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/2e8949f09e3097c629f33323eaf280cf5c88c81a
Commit:     2e8949f09e3097c629f33323eaf280cf5c88c81a
Parent:     076dab234d29d1c0d60e26a5fa48aabb7fa58f79
Author:     Alan Cox <alan@linux.intel.com>
AuthorDate: Tue Jun 1 12:51:00 2010 +0100
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Tue Jun 1 08:40:47 2010 -0700

    intel_scu_ipc: Length fix
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index 576c3ed..40658e3 100644
--- 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++)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
intel_scu_ipc: Length fix, Linux Kernel Mailing ..., (Tue Jun 1, 9:59 am)