soundwire: bus: handle master quirks for bus clash and parity
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 2 Mar 2021 08:27:19 +0000 (16:27 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Mar 2021 12:16:44 +0000 (17:46 +0530)
commit6b8caa6f9d3a428022d41913bf9660325599dac1
treed2501e65ce88ce4a796e9eb528ebe434ffeb4716
parent5bb643c39b97c440b2981c69f05596c7ea868b73
soundwire: bus: handle master quirks for bus clash and parity

Add optional interrupt status read/clear if the master quirks are set.

In the case of the parity, the master quirk is only applied if the
Slave doesn't already have a parity-related quirk.

Co-developed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20210302082720.12322-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c