mfd: wcd934x: Mark CPE registers as volatile
Some of the CPE (Codec Processing Engine) registers in wcd934x audio codec are read-write registers with only few bits that are read-only. Add change to mark such registers as volatile to avoid reading stale value from cache for the read-only bits. CRs-Fixed: 1049012 Change-Id: I6d77cf57e940c9efa6be64565d9ea7d328f0cd9b Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
This commit is contained in:
parent
008f057bba
commit
4087c68e23
1 changed files with 4 additions and 0 deletions
|
@ -1854,6 +1854,10 @@ static bool wcd934x_is_volatile_register(struct device *dev, unsigned int reg)
|
|||
*/
|
||||
switch (reg) {
|
||||
case WCD934X_CPE_SS_SOC_SW_COLLAPSE_CTL:
|
||||
case WCD934X_CPE_SS_PWR_SYS_PSTATE_CTL_0:
|
||||
case WCD934X_CPE_SS_PWR_SYS_PSTATE_CTL_1:
|
||||
case WCD934X_CPE_SS_CPAR_CTL:
|
||||
case WCD934X_CPE_SS_STATUS:
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue