Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1582220
| From | Chanwoo Choi <cw00.choi@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] extcon: ext-usb-gpio: do not enable USB as wakeup source by default |
| Date | 2017-02-16 02:50 +0100 |
| Message-ID | <tbjmN-7Jy-5@gated-at.bofh.it> (permalink) |
| References | <tbjmN-7Jy-7@gated-at.bofh.it> <tbjmN-7Jy-9@gated-at.bofh.it> |
| Organization | Samsung Electronics |
On 2017년 02월 13일 18:21, Peter Chen wrote: > 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); Applied it. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 1/1] extcon: ext-usb-gpio: do not enable USB as wakeup source by default Chanwoo Choi <cw00.choi@samsung.com> - 2017-02-16 02:50 +0100
csiph-web