drivers: mfd: wcd934x: Set MBHC registers to volatile

MBHC mechanical detection, electrical detection and micbias
registers are not getting updated in hardware after subsystem
restart results in no IRQ during headset plug insertion.
Set these MBHC registers to volatile for headset plug
detection to work properly.

Change-Id: Iaec3a17e5eed952ba0abdcffbf321ad942486769
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
Sudheer Papothi 2016-10-20 02:51:39 +05:30 committed by Gerrit - the friendly Code Review server
parent 46aa49c118
commit 8e77be66f9

View file

@ -1919,6 +1919,10 @@ static bool wcd934x_is_volatile_register(struct device *dev, unsigned int reg)
case WCD934X_SIDO_NEW_VOUT_A_STARTUP:
case WCD934X_SIDO_NEW_VOUT_D_STARTUP:
case WCD934X_CODEC_RPM_PWR_CDC_DIG_HM_CTL:
case WCD934X_ANA_MBHC_MECH:
case WCD934X_ANA_MBHC_ELECT:
case WCD934X_ANA_MBHC_ZDET:
case WCD934X_ANA_MICB2:
return true;
}