mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00:00
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>
This commit is contained in:
parent
79fe02cb75
commit
917df025e1
@ -281,6 +281,8 @@ static __maybe_unused int max98373_resume(struct device *dev)
|
||||
msecs_to_jiffies(MAX98373_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -749,6 +749,8 @@ static int __maybe_unused rt1308_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT1308_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -734,6 +734,8 @@ static int __maybe_unused rt1316_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT1316_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -793,6 +793,8 @@ static int __maybe_unused rt5682_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT5682_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -449,6 +449,8 @@ static int __maybe_unused rt711_sdca_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT711_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -244,6 +244,8 @@ static int __maybe_unused rt715_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT715_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Enumeration not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
@ -562,6 +562,8 @@ static int __maybe_unused rt715_dev_resume(struct device *dev)
|
||||
msecs_to_jiffies(RT715_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user