Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5aa06930 authored by Hong Liu's avatar Hong Liu Committed by Matthew Garrett
Browse files

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: default avatarHong Liu <hong.liu@intel.com>
Signed-off-by: default avatarALan Cox <alan@linux.intel.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 77e01d6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++)