soundwire: bus: add dev_warn() messages to track UNATTACHED devices
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 26 Jan 2022 01:15:27 +0000 (09:15 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Feb 2022 13:48:08 +0000 (19:18 +0530)
commitd1b3285570581992462ffb8500d56ad9383306ef
tree2d67dfff29f009fa8fe224e14032a548edfe7aa5
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
soundwire: bus: add dev_warn() messages to track UNATTACHED devices

In rare cases, some devices seem to lose sync and never re-attach on
the bus. This seems to happen only when there are more than one device
per link, which suggests either an electrical issue, a race condition
or a state machine issue.

Add two dev_warn() messages to identify the sequence by which the
devices become UNATTACHED.

BugLink: https://github.com/thesofproject/linux/issues/3063
BugLink: https://github.com/thesofproject/linux/issues/3325
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>
Link: https://lore.kernel.org/r/20220126011527.27930-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c