soundwire: add sdw_show_ping_status() helper
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 14 Jul 2022 01:10:42 +0000 (09:10 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 17 Aug 2022 12:00:54 +0000 (13:00 +0100)
commit79fe02cb7547fcc09e83b850cfd32896d7dc6289
treeb29795652fe551ed99807e31d0f5904d4d605f2a
parent133547a1ef16cbdadb5c0023e5917924ae326dcc
soundwire: add sdw_show_ping_status() helper

This helper provides an optional delay parameter to wait for devices
to resync in case of errors, and checks that devices are indeed
attached on the bus.

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-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/bus.c
include/linux/soundwire/sdw.h