]> git.hungrycats.org Git - linux/commit
ASoC: da7213: Populate max_register to regmap_config
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Wed, 6 Nov 2024 08:18:17 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:08 +0000 (13:54 +0100)
commit795021504dad91c7e4f9cdc0bc6cf91aba1ceaa9
tree42d07d0c46588771606b9205bad1582dad8db56a
parentcafcd19ffcb01f87f48a7ec3270be7f6c3d576ec
ASoC: da7213: Populate max_register to regmap_config

commit 9d4f9f6a7bb1afbde57d08c98f2db4ff019ee19d upstream.

On the Renesas RZ/G3S SMARC Carrier II board having a DA7212 codec (using
da7213 driver) connected to one SSIF-2 available on the Renesas RZ/G3S SoC
it has been discovered that using the runtime PM API for suspend/resume
(as will be proposed in the following commits) leads to the codec not
being propertly initialized after resume. This is because w/o
max_register populated to regmap_config the regcache_rbtree_sync()
breaks on base_reg > max condition and the regcache_sync_block() call is
skipped.

Fixes: ef5c2eba2412 ("ASoC: codecs: Add da7213 codec")
Cc: stable@vger.kernel.org
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20241106081826.1211088-23-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/da7213.c