Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6712176 authored by Bhalchandra Gajare's avatar Bhalchandra Gajare Committed by Gerrit - the friendly Code Review server
Browse files

mfd: wcd9335-regmap: Mark shared registers as volatile



Some of the codec registers can be shared with other processors and
hence can get updated without the knowledge of the driver. In such cases
the regmap cache is not in sync with the hardware register setting. Mark
these registers as volatile so that reads and writes bypass the cache.

Change-Id: I3c8e8e31e36f9f9a1aba0193d696d019437dfed2
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent ff05e2c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1369,6 +1369,10 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
	case WCD9335_CPE_SS_SS_ERROR_INT_STATUS:
	case WCD9335_CPE_SS_STATUS:
	case WCD9335_CPE_SS_BACKUP_INT:
	case WCD9335_CPE_SS_CFG:
	case WCD9335_SOC_MAD_MAIN_CTL_1:
	case WCD9335_SOC_MAD_AUDIO_CTL_3:
	case WCD9335_SOC_MAD_AUDIO_CTL_4:
		return true;
	default:
		return false;