aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/sof/debug.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-12-27 00:03:16 +0000
committerMark Brown <broonie@kernel.org>2022-12-27 00:03:16 +0000
commitce9ef749a2fa9048c1ebacc3194b17a9628512f5 (patch)
tree3bec6c0f1c4861db1052b6ab1f10ad2fcbe68e55 /sound/soc/sof/debug.c
parent3e78986a840d59dd27e636eae3f52dc11125c835 (diff)
parent9a9134fd56f6ba614ff7b2b3b0bac0bf1d0dc0c9 (diff)
ASoC: SOF: Fixes for suspend after firmware crash
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: This series contails 2 patches to fix device suspend after a firmware crash and another patch to allow reading the FW state from debugfs.
Diffstat (limited to 'sound/soc/sof/debug.c')
-rw-r--r--sound/soc/sof/debug.c4
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);