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

Commit 9d9b34eb authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

drivers: mfd: Mark CPR bank registers as volatile



Mark CPR bank registers as volatile so that
writes to these registers get updated correctly
in hardware.

CRs-Fixed: 1081673
Change-Id: I92d0511b4e9912dfa346378784d811f6606df205
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 1ff56658
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1904,6 +1904,9 @@ static bool wcd934x_is_volatile_register(struct device *dev, unsigned int reg)
	    (reg <= WCD934X_CDC_ANC1_FB_GAIN_CTL))
		return true;

	if ((reg >= WCD934X_CODEC_CPR_WR_DATA_0) &&
	    (reg <= WCD934X_CODEC_CPR_RD_DATA_3))
		return true;

	/*
	 * Need to mark volatile for registers that are writable but