OSDN Git Service

drivers: mfd: wcd934x: Set MBHC registers to volatile
authorSudheer Papothi <spapothi@codeaurora.org>
Wed, 19 Oct 2016 21:21:39 +0000 (02:51 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 24 Oct 2016 19:15:48 +0000 (12:15 -0700)
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>
drivers/mfd/wcd934x-regmap.c

index e07350a..2d349fb 100644 (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;
        }