ASoC: SOF: debug: Clarify the IPC timeout handling path
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 10 Jun 2022 08:04:21 +0000 (11:04 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 12:32:21 +0000 (13:32 +0100)
commit145cb4e7a9ee12326f99948d8980ad258462b6c4
tree32a009a42af05a6bc34b4dca8265b82f41ba3520
parentdf4d27b19b892f464685ea45fa6132dd1a2b6864
ASoC: SOF: debug: Clarify the IPC timeout handling path

The dmesg log message of "Firmware exception" causes lots of confusion as
the snd_sof_handle_fw_exception() is only called in case of an IPC tx
timeout, where such a message does not make much sense.

To not limit the snd_sof_handle_fw_exception() handler to just one error
case, add a parameter to allow the caller to specify a meaningful message
to be printed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Yaochun Hung <yc.hung@mediatek.com>
Link: https://lore.kernel.org/r/20220610080421.31453-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/debug.c
sound/soc/sof/ipc3.c
sound/soc/sof/sof-priv.h