]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tas2764: Mark die temp register as volatile
authorJames Calligeros <jcalligeros99@gmail.com>
Sat, 25 Apr 2026 00:44:03 +0000 (10:44 +1000)
committerMark Brown <broonie@kernel.org>
Sun, 26 Apr 2026 21:58:07 +0000 (06:58 +0900)
Reading the temperature register always returns the first value
read from the chip due to regcache.

Mark TAS2764_TEMP as volatile to prevent returning stale, cached
values when reading the die temp.

Fixes: 186dfc85f9a8 ("ASoC: tas2764: expose die temp to hwmon")
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20260425-tas27xx-hwmon-fixes-v1-1-83c13b8e8f54@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2764.c

index 423b7073b30221a5fa19ee3bbf1a442b93d87a2d..6aab6d2b741910d60efb9b28ec0887c5570604f2 100644 (file)
@@ -904,6 +904,7 @@ static bool tas2764_volatile_register(struct device *dev, unsigned int reg)
 {
        switch (reg) {
        case TAS2764_SW_RST:
+       case TAS2764_TEMP:
        case TAS2764_INT_LTCH0 ... TAS2764_INT_LTCH4:
        case TAS2764_INT_CLK_CFG:
                return true;