From: Peter Chen <peter.chen@nxp.com>
To: <myungjoo.ham@samsung.com>, <cw00.choi@samsung.com>
Cc: <rogerq@ti.com>, <linux-usb@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Peter Chen <peter.chen@nxp.com>
Subject: [PATCH 1/1] extcon: ext-usb-gpio: do not enable USB as wakeup source by default
Date: Mon, 13 Feb 2017 17:21:52 +0800 [thread overview]
Message-ID: <1486977712-23195-1-git-send-email-peter.chen@nxp.com> (raw)
Whether the USB port as a wakeup source should be determined by user,
but not enabled by default.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/extcon/extcon-usb-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index a5e1882..66c749d 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -195,7 +195,7 @@ static int usb_extcon_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, info);
- device_init_wakeup(dev, true);
+ device_set_wakeup_capable(&pdev->dev, true);
/* Perform initial detection */
usb_extcon_detect_cable(&info->wq_detcable.work);
--
2.7.4
next reply other threads:[~2017-02-13 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170213092559epcas3p2567c77f8751cabc4da7e4b1cb743d14d@epcas3p2.samsung.com>
2017-02-13 9:21 ` Peter Chen [this message]
2017-02-16 1:41 ` 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=1486977712-23195-1-git-send-email-peter.chen@nxp.com \
--to=peter.chen@nxp.com \
--cc=cw00.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=rogerq@ti.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®