Skip to contentSkip to conversation

extcon: ext-usb-gpio: do not enable USB as wakeup source by default

PATCH In review Peter Chen 2 participants 2 messages Feb 13, 2017 – Feb 16, 2017 External connector subsystem (extcon)

lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 extcon: ext-usb-gpio: do not enable USB as wakeup source by default

Whether the USB port as a wakeup source should be determined by user, but not enabled by default.

---
 drivers/extcon/extcon-usb-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-usb-gpio.c +1 -1
index a5e1882..66c749d 100644
@@ -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);
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 13 lines · Peter Chen

Whether the USB port as a wakeup source should be determined by user, but not enabled by default.

---
 drivers/extcon/extcon-usb-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-usb-gpio.c +0 -0
index a5e1882..66c749d 100644

drivers/extcon/extcon-usb-gpio.c static int usb_extcon_probe(struct platform_device *pdev) · line 201

Quoted 8 lines
drivers/extcon/extcon-usb-gpio.c +1 -1
@@ -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.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics