diff options
author | Curtis Malainey <[email protected]> | 2022-12-20 14:56:29 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-12-21 12:11:51 +0000 |
commit | 9a9134fd56f6ba614ff7b2b3b0bac0bf1d0dc0c9 (patch) | |
tree | c4489cc23f48ea00c429c86d2bc593d836d33d05 | |
parent | d185e0689abc98ef55fb7a7d75aa0c48a0ed5838 (diff) |
ASoC: SOF: Add FW state to debugfs
Allow system health detection mechanisms to check the FW state, this
will allow them to check if the FW is in its "crashed" state going
forward to help automatically diagnose driver state.
Signed-off-by: Curtis Malainey <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Péter Ujfalusi <[email protected]>
Signed-off-by: Peter Ujfalusi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/sof/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index d9a3ce7b69e1..ade0507328af 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -353,7 +353,9 @@ int snd_sof_dbg_init(struct snd_sof_dev *sdev) return err; } - return 0; + return snd_sof_debugfs_buf_item(sdev, &sdev->fw_state, + sizeof(sdev->fw_state), + "fw_state", 0444); } EXPORT_SYMBOL_GPL(snd_sof_dbg_init); |