Patch "ASoC: codecs: add missing max_register in regmap config" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: codecs: add missing max_register in regmap config

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-codecs-add-missing-max_register-in-regmap-confi.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e53477119f7510fd79c13e6cd8913d8d64fe0328
Author: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
Date:   Mon Feb 1 16:14:29 2021 +0000

    ASoC: codecs: add missing max_register in regmap config
    
    [ Upstream commit e8820dbddbcad7e91daacf7d42a49d1d04a4e489 ]
    
    For some reason setting max_register was missed from regmap_config.
    Without this cat /sys/kernel/debug/regmap/sdw:0:217:2010:0:1/range
    actually throws below Warning.
    
    WARNING: CPU: 7 PID: 540 at drivers/base/regmap/regmap-debugfs.c:160
     regmap_debugfs_get_dump_start.part.10+0x1e0/0x220
    ...
    Call trace:
     regmap_debugfs_get_dump_start.part.10+0x1e0/0x220
     regmap_reg_ranges_read_file+0xc0/0x2e0
     full_proxy_read+0x64/0x98
     vfs_read+0xa8/0x1e0
     ksys_read+0x6c/0x100
     __arm64_sys_read+0x1c/0x28
     el0_svc_common.constprop.3+0x6c/0x190
     do_el0_svc+0x24/0x90
     el0_svc+0x14/0x20
     el0_sync_handler+0x90/0xb8
     el0_sync+0x158/0x180
    ...
    
    Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support")
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210201161429.28060-1-srinivas.kandagatla@xxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c
index 4530b74f5921b..db87e07b11c94 100644
--- a/sound/soc/codecs/wsa881x.c
+++ b/sound/soc/codecs/wsa881x.c
@@ -640,6 +640,7 @@ static struct regmap_config wsa881x_regmap_config = {
 	.val_bits = 8,
 	.cache_type = REGCACHE_RBTREE,
 	.reg_defaults = wsa881x_defaults,
+	.max_register = WSA881X_SPKR_STATUS3,
 	.num_reg_defaults = ARRAY_SIZE(wsa881x_defaults),
 	.volatile_reg = wsa881x_volatile_register,
 	.readable_reg = wsa881x_readable_register,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux