]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l42: Regmap must use_single_read/write
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 11 May 2021 13:28:55 +0000 (14:28 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 May 2021 15:01:29 +0000 (16:01 +0100)
commit4670e485a4f96fc29ee5b103d00588cac83ce05e
tree59ac0a19722be5431a0505a883205820e7cb1e43
parent84844f4ca8a1869b4b4982867adec077b6a74f48
ASoC: cs42l42: Regmap must use_single_read/write

cs42l42 does not support standard burst transfers so the use_single_read
and use_single_write flags must be set in the regmap config.

Because of this bug, the patch:

commit 0a0eb567e1d4 ("ASoC: cs42l42: Minor error paths fixups")

broke cs42l42 probe() because without the use_single_* flags it causes
regmap to issue a burst read.

However, the missing use_single_* could cause problems anyway because the
regmap cache can attempt burst transfers if these flags are not set.

Fixes: 74178383bdae ("ASoC: Add support for CS42L42 codec")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210511132855.27159-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c