From: Hong Liu Date: Mon, 26 Jul 2010 09:06:31 +0000 (+0100) Subject: intel_scu_ipc: fix size field for intel_scu_ipc_command X-Git-Tag: v5.15~28797^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5aa06930fbcfcb6b03fcb18b753122b10ac47a87;p=mirror_ubuntu-kernels.git 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 Signed-off-by: ALan Cox Signed-off-by: Matthew Garrett --- 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, 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++)