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:
parent
937a2fc676
commit
e7a3aac14a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue