extcon: arizona: Check we report a valid impedance
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 18:06:29 +0000 (19:06 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Apr 2013 10:53:57 +0000 (11:53 +0100)
commite2c0f476ec90dbb020b1da7e399072e062ad6c9e
treeec88305240054f6a9e2fbdf22a810f7517d94851
parenta3e2078d6a14bc67e733f7dbd32d1bc4051c9d90
extcon: arizona: Check we report a valid impedance

Occasionally we can trigger an interrupt before we have completed
impedance measurement, although the valid bit will still be set. This
patch spins reading the impedance value until a valid value is seen.

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