summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt700-sdw.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2022-07-14 03:10:43 +0200
committerMark Brown <broonie@kernel.org>2022-08-17 14:00:55 +0200
commit917df025e1db1286afb6e46914ae3e8b40241568 (patch)
tree1b91b53648d1ce86613cad69dd00f71ed272f347 /sound/soc/codecs/rt700-sdw.c
parentsoundwire: add sdw_show_ping_status() helper (diff)
downloadlinux-917df025e1db1286afb6e46914ae3e8b40241568.tar.xz
linux-917df025e1db1286afb6e46914ae3e8b40241568.zip
ASoC: codecs: show PING status on resume failures
This helper should help identify cases where devices fall off the bus and don't resync. BugLink: https://github.com/thesofproject/linux/issues/3638 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Acked-By: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20220714011043.46059-5-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt700-sdw.c')
-rw-r--r--sound/soc/codecs/rt700-sdw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt700-sdw.c b/sound/soc/codecs/rt700-sdw.c
index f7439e40ca8b..96fc5f36d0d0 100644
--- a/sound/soc/codecs/rt700-sdw.c
+++ b/sound/soc/codecs/rt700-sdw.c
@@ -542,6 +542,8 @@ static int __maybe_unused rt700_dev_resume(struct device *dev)
msecs_to_jiffies(RT700_PROBE_TIMEOUT));
if (!time) {
dev_err(&slave->dev, "Initialization not complete, timed out\n");
+ sdw_show_ping_status(slave->bus, true);
+
return -ETIMEDOUT;
}