From: Roger Quadros <rogerq@ti.com>
To: <cw00.choi@samsung.com>, <myungjoo.ham@samsung.com>
Cc: <grygorii.strashko@ti.com>, <linux-kernel@vger.kernel.org>,
Roger Quadros <rogerq@ti.com>
Subject: [PATCH 1/2] extcon: usb-gpio: Don't miss event during suspend/resume
Date: Wed, 15 Feb 2017 14:31:28 +0200 [thread overview]
Message-ID: <1487161889-15550-2-git-send-email-rogerq@ti.com> (raw)
In-Reply-To: <1487161889-15550-1-git-send-email-rogerq@ti.com>
We must check for ID/VBUS changes during resume irrespective
of whether our device wakeup is enabled or not.
Without this we seem to be missing ID/VBUS events after
system suspend/resume.
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
drivers/extcon/extcon-usb-gpio.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index d589c5f..71ac427 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -275,9 +275,8 @@ static int usb_extcon_resume(struct device *dev)
if (info->vbus_gpiod)
enable_irq(info->vbus_irq);
- if (!device_may_wakeup(dev))
- queue_delayed_work(system_power_efficient_wq,
- &info->wq_detcable, 0);
+ queue_delayed_work(system_power_efficient_wq,
+ &info->wq_detcable, 0);
return ret;
}
--
2.7.4
next prev parent reply other threads:[~2017-02-15 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170215123201epcas4p4715f619f0b4e6f299fa53a2adf11de5b@epcas4p4.samsung.com>
2017-02-15 12:31 ` [PATCH 0/2] extcon: palmas/usb-gpio: Don't miss events " Roger Quadros
2017-02-15 12:31 ` Roger Quadros [this message]
2017-02-15 12:31 ` [PATCH 2/2] extcon: palmas: Don't miss GPIO " Roger Quadros
2017-02-16 1:42 ` [PATCH 0/2] extcon: palmas/usb-gpio: Don't miss " Chanwoo Choi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1487161889-15550-2-git-send-email-rogerq@ti.com \
--to=rogerq@ti.com \
--cc=cw00.choi@samsung.com \
--cc=grygorii.strashko@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®