soundwire: bus: squelch error returned by mockup devices
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 14 Jul 2021 03:22:06 +0000 (11:22 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Aug 2021 05:38:22 +0000 (11:08 +0530)
commit7fae3cfb7007038a320db43ddffb7688388a0260
tree0caec51126987985af8bfe2b8618a22120d145f9
parent4a7a603cad3f667fb02e194c0a3412d3a7292093
soundwire: bus: squelch error returned by mockup devices

All read and writes from/to SoundWire mockup devices will return
-ENODATA/Command_Ignored, this patch forces a Command_OK result to let
the bus perform the required configurations, e.g. for the Data Ports,
which will only have an effect on the Master side.

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/20210714032209.11284-8-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c