mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
ASoC: SOF: Rename snd_sof_get_status() and add kernel log level parameter
The snd_sof_get_status() is not the best name for a function which in fact is tasked to print out DSP oops and stack. Rename it to sof_print_oops_and_stack(). At the same time add a new parameter to specify the desired kernel log level to be used for the prints. When updating the users of the function, pass KERN_ERR for now to make sure that there is no functional change happens. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Chao Song <chao.song@intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20211223113628.18582-18-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
b9f0bfd16d
commit
4995ffce2c
@@ -559,10 +559,10 @@ int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
|
||||
int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
|
||||
struct sof_ipc_dma_trace_posn *posn);
|
||||
void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev);
|
||||
void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
|
||||
u32 tracep_code, void *oops,
|
||||
struct sof_ipc_panic_info *panic_info,
|
||||
void *stack, size_t stack_words);
|
||||
void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level,
|
||||
u32 panic_code, u32 tracep_code, void *oops,
|
||||
struct sof_ipc_panic_info *panic_info,
|
||||
void *stack, size_t stack_words);
|
||||
int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
|
||||
void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev);
|
||||
int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev);
|
||||
|
||||
Reference in New Issue
Block a user