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: Bhalchandra Gajare <gajare@codeaurora.org>
This commit is contained in:
Bhalchandra Gajare 2015-06-29 10:39:22 -07:00 committed by Gerrit - the friendly Code Review server
parent 937a2fc676
commit e7a3aac14a
1 changed files with 4 additions and 0 deletions

View File

@ -1371,6 +1371,10 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
case WCD9335_CPE_SS_BACKUP_INT:
case WCD9335_FLYBACK_EN:
case WCD9335_ANA_RX_SUPPLIES:
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;