[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <57075F23.8080703@ti.com>
Date: Fri, 8 Apr 2016 10:34:59 +0300
From: Roger Quadros <rogerq@...com>
To: <myungjoo.ham@...sung.com>, <cw00.choi@...sung.com>
CC: <linux-kernel@...r.kernel.org>,
Grygorii Strashko <grygorii.strashko@...com>, <rogerq@...com>
Subject: [PATCH v2] extcon: usb-gpio: Don't miss event during suspend/resume
Pin state might have changed during suspend/resume while
our interrupts were disabled and if device doesn't support wakeup.
Scan for change during resume for such case.
Signed-off-by: Roger Quadros <rogerq@...com>
---
v2:
- only check for state change during resume if device wakeup is not supported
drivers/extcon/extcon-usb-gpio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index bc61d11..118f8ab 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -185,6 +185,8 @@ static int usb_extcon_resume(struct device *dev)
int ret = 0;
enable_irq(info->id_irq);
+ if (!device_may_wakeup(dev))
+ usb_extcon_detect_cable(&info->wq_detcable.work);
return ret;
}
--
2.5.0
Powered by blists - more mailing lists