]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic31xx: Make regmap cache only on probe()
authorMark Brown <broonie@kernel.org>
Wed, 7 Jul 2021 16:02:34 +0000 (17:02 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:44:32 +0000 (23:44 +0100)
commitad429641cb9feba8c0f8875c99bdea2d02ccdedc
tree4ef7ce0d7256dd5045d92aa08223d3ab4777d45e
parentecabab880878b2f9afab39cfd721d0d471250e74
ASoC: tlv320aic31xx: Make regmap cache only on probe()

Currently the tlv320aic31xx driver has regulator support but does not
enable the regulators during probe, deferring this until something causes
ASoC to make the card active. It does put the device into cache only mode
but only when the component level probe is called, however if interrupts
are in use the driver will access the regmap before then which if the
regulators are not powered on would cause I/O problems.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210707160234.16253-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic31xx.c