Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: Intel: hda-ipc: Don't read mailbox for PM_GATE reply

Memory windows could be powered off before receiving PM_GATE IPC reply
from FW, we can't read the mailbox to get reply.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191025224122.7718-15-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Keyon Jie and committed by
Mark Brown
463fbf6d 10992004

+4 -2
+4 -2
sound/soc/sof/intel/hda-ipc.c
··· 83 83 } 84 84 85 85 hdr = msg->msg_data; 86 - if (hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE)) { 86 + if (hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE) || 87 + hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE)) { 87 88 /* 88 89 * memory windows are powered off before sending IPC reply, 89 - * so we can't read the mailbox for CTX_SAVE reply. 90 + * so we can't read the mailbox for CTX_SAVE and PM_GATE 91 + * replies. 90 92 */ 91 93 reply.error = 0; 92 94 reply.hdr.cmd = SOF_IPC_GLB_REPLY;