aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2010-07-26 05:06:31 -0400
committerMatthew Garrett <mjg@redhat.com>2010-08-03 09:50:33 -0400
commit5aa06930fbcfcb6b03fcb18b753122b10ac47a87 (patch)
tree862cd3c32c75deda79e028bec6b3dc1de83b4d98 /drivers/platform
parent77e01d6d177f060f466417fa32fc3e1381a73502 (diff)
intel_scu_ipc: fix size field for intel_scu_ipc_command
Size for PMIC read/write command is byte, while it is DWORD for other IPC commands. Signed-off-by: Hong Liu <hong.liu@intel.com> Signed-off-by: ALan Cox <alan@linux.intel.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_scu_ipc.c2
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 23b6d46a4b8f..943f9084dcb1 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -444,7 +444,7 @@ int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
444 for (i = 0; i < inlen; i++) 444 for (i = 0; i < inlen; i++)
445 ipc_data_writel(*in++, 4 * i); 445 ipc_data_writel(*in++, 4 * i);
446 446
447 ipc_command((sub << 12) | cmd | (inlen << 18)); 447 ipc_command((inlen << 16) | (sub << 12) | cmd);
448 err = busy_loop(); 448 err = busy_loop();
449 449
450 for (i = 0; i < outlen; i++) 450 for (i = 0; i < outlen; i++)