ASoC: rt5682-sdw: set regcache_cache_only false before reading RT5682_DEVICE_ID
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 7 Jun 2021 22:22:37 +0000 (17:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:43 +0000 (16:56 +0200)
commit92a30a90d69ae0c0b44ef4ef2636b675c21f1acf
tree96d0a126ee6c43768f2f358f9b0406f75b4151e3
parent696cfb25679452721215c193ba6f72eebfe7a842
ASoC: rt5682-sdw: set regcache_cache_only false before reading RT5682_DEVICE_ID

[ Upstream commit c0372bc873dd29f325ee908351e0bd5b08d4d608 ]

RT5682_DEVICE_ID is a volatile register, we can not read it in cache
only mode.

Fixes: 03f6fc6de919 ("ASoC: rt5682: Add the soundwire support")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210607222239.582139-14-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5682-sdw.c