extcon: arizona: Retry HPDET identification for high impedance
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 18:09:45 +0000 (19:09 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Apr 2013 10:54:00 +0000 (11:54 +0100)
commit9dd5e53d9d2f933039eb2d5e4052afa249f638ba
tree68c984efef69cce9f1e8f70097b01ff357a5f690
parent2643fd641af28603ccd42244011a5ebc66016f8f
extcon: arizona: Retry HPDET identification for high impedance

Sometimes we can trigger measurements early if contacts are shorted during
a slow insertion. As well as debouncing add further robustness by retrying
if we get a high impedance measurement for headphones as this can indicate
that the headphones were not yet connected.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c