Skip to content

Commit

Permalink
intel_scu_ipc: fix size field for intel_scu_ipc_command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hong Liu authored and Matthew Garrett committed Aug 3, 2010
1 parent 77e01d6 commit 5aa0693
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 @@ -444,7 +444,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((sub << 12) | cmd | (inlen << 18));
ipc_command((inlen << 16) | (sub << 12) | cmd);
err = busy_loop();

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

0 comments on commit 5aa0693

Please sign in to comment.