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

Commit 5a91a5d8 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd9335: Update wcd9335 codec volatile register



Declare mclk and SIDO buck related registers as volatile
so that read/writes to these registers will always happen
from/to codec hardware. It is possible that these registers
will be updated by hardware before even regmap cache is
initialized, so declaring them as volatile will always
get the correct values as per hardware state.

Change-Id: I59412a5c6f64eab8d983cd4f4eb4e0524b91866e
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 095c42a3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1382,6 +1382,9 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
	case WCD9335_SOC_MAD_AUDIO_CTL_4:
	case WCD9335_FLYBACK_EN:
	case WCD9335_ANA_RX_SUPPLIES:
	case WCD9335_CDC_CLK_RST_CTRL_FS_CNT_CONTROL:
	case WCD9335_SIDO_SIDO_CCL_2:
	case WCD9335_SIDO_SIDO_CCL_4:
		return true;
	default:
		return false;