diff mbox

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

Message ID 1459951299-20578-1-git-send-email-rogerq@ti.com
State Superseded
Headers show

Commit Message

Roger Quadros April 6, 2016, 2:01 p.m. UTC
Pin state might have changed during suspend/resume while
our interrupts were disabled. Scan for change during resume.

Signed-off-by: Roger Quadros <rogerq@ti.com>

---
 drivers/extcon/extcon-usb-gpio.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.5.0
diff mbox

Patch

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;
 }