soundwire: enable Data Port test modes
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sun, 20 Sep 2020 19:32:05 +0000 (03:32 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 23 Sep 2020 09:59:29 +0000 (15:29 +0530)
commitdd87a72ae968f70852cd7a2d939acd9693e76095
tree8e10848c5a9ead6394c1368671028a2d56a7592e
parentf067c9251797ab0ff13cb4c6d5f5a0e6dc2c65d3
soundwire: enable Data Port test modes

Test modes are required for all SoundWire IP, and help debug
integration issues. In theory each port can be configured with a
different mode but to simplify this patch only offers separate
configurations for the Master and Slave ports - this covers 99% of the
intended cases during platform integration.

The test mode value is set via platform-specific ways.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200920193207.31241-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
drivers/soundwire/generic_bandwidth_allocation.c
drivers/soundwire/stream.c
include/linux/soundwire/sdw.h