Unverified Commit 152c773f authored by Shuming Fan's avatar Shuming Fan Committed by Mark Brown
Browse files

ASoC: rt722: make regmap cache-only in probe



This patch makes sure the access to the codecs is cached until the device is enumerated.

Signed-off-by: default avatarShuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20250519090645.2620292-1-shumingf@realtek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a2820606
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ static const struct reg_default rt722_sdca_reg_defaults[] = {
	{ 0x200003c, 0xc214 },
	{ 0x2000046, 0x8004 },
	{ 0x5810000, 0x702d },
	{ 0x6100000, 0x0201 },
	{ 0x6100006, 0x0005 },
	{ 0x6100010, 0x2630 },
	{ 0x6100011, 0x152f },
+3 −1
Original line number Diff line number Diff line
@@ -1309,6 +1309,8 @@ int rt722_sdca_init(struct device *dev, struct regmap *regmap, struct sdw_slave
	rt722->slave = slave;
	rt722->regmap = regmap;

	regcache_cache_only(rt722->regmap, true);

	mutex_init(&rt722->calibrate_mutex);
	mutex_init(&rt722->disable_irq_lock);

@@ -1521,8 +1523,8 @@ int rt722_sdca_io_init(struct device *dev, struct sdw_slave *slave)
	if (rt722->hw_init)
		return 0;

	if (rt722->first_hw_init) {
	regcache_cache_only(rt722->regmap, false);
	if (rt722->first_hw_init) {
		regcache_cache_bypass(rt722->regmap, true);
	} else {
		/*