extcon: max77693: Fix a bug occured at changing ADC debounce time.
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Tue, 18 Mar 2014 15:55:10 +0000 (00:55 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:49 +0000 (07:27 +0200)
commitf5fa13f8c34a1eeec7c657735086925fb1325f59
tree3b925c17749580c89d5f32a2e3e74071f23be046
parentd3b65920e6cfe8b9ad9e1347ac5c01a024a2c076
extcon: max77693: Fix a bug occured at changing ADC debounce time.

During the initialzation of max77693 muic device, it has been suffered from
abnormal interrupt and accidental reset of certain register when it changes
ADC debounce time. All these happens occured by mistakenly writing some value
to BLTDset and JIGset from CONTROL3 register.
BLTDset and JIGset are not configurable and only reflect actual pin status.
If you write some value other than 0 to them, muic device will return false
information.

To set ADC debounce time properly, give 0 to BLTDset and JIGset when writing
CONTORL3 register.

Previous workaround patches are now purged.

Change-Id: If87e01785115d460b1153e24271a50125d1631fb
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/extcon/extcon-max77693.c