[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1459951299-20578-1-git-send-email-rogerq@ti.com>
Date: Wed, 6 Apr 2016 17:01:39 +0300
From: Roger Quadros <rogerq@...com>
To: <myungjoo.ham@...sung.com>, <cw00.choi@...sung.com>
CC: <linux-kernel@...r.kernel.org>, Roger Quadros <rogerq@...com>
Subject: [PATCH] extcon: usb-gpio: Don't miss event during suspend/resume
Pin state might have changed during suspend/resume while
our interrupts were disabled. Scan for change during resume.
Signed-off-by: Roger Quadros <rogerq@...com>
---
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
Powered by blists - more mailing lists