]> git.karo-electronics.de Git - karo-tx-linux.git/commit
extcon: arizona: Wait for any running HPDETs to complete on jack removal
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 25 Jan 2017 09:34:06 +0000 (09:34 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Apr 2017 01:55:19 +0000 (10:55 +0900)
commite57bb43c7e346943d73b44d05485aac68d8aff9d
tree658a5add528ceab0b4849d5c80d09c8e86a5a668
parentbc9a5c37a5766bbc9d93c15f3bee2a1896dfa9f6
extcon: arizona: Wait for any running HPDETs to complete on jack removal

As the HPDET can't be aborted mid way through we should not allow any new
insertion to be processed until the previous HPDET has finished. It is very
unlikely but with low enough debounce settings you could start a new HPDET
before the old one has completed, which results in an erroneous reading.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c