[PATCH] extcon: usb-gpio: Don't miss event during suspend/resume

From: Roger Quadros
Date: Wed Apr 06 2016 - 10:01:52 EST


Pin state might have changed during suspend/resume while
our interrupts were disabled. Scan for change during resume.

Signed-off-by: Roger Quadros <rogerq@xxxxxx>
---
drivers/extcon/extcon-usb-gpio.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index 2b2fecf..20175ec 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -192,6 +192,7 @@ static int usb_extcon_resume(struct device *dev)
}

enable_irq(info->id_irq);
+ usb_extcon_detect_cable(&info->wq_detcable.work);

return ret;
}
--
2.5.0