extcon: Perform device wakeup initialization upon driver probe
If USB cable is plugged in to usb port after system suspend, system is not resuming. Fix the issue by attaching wakeup source to device object which makes gpio vbus and id irq wakeup capable upon system suspend. Change-Id: I7436ad92ed37653e7db1deebde1a11e1c5165d6f Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
edcd9db1db
commit
13727a3204
@@ -194,7 +194,7 @@ static int usb_extcon_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
platform_set_drvdata(pdev, info);
|
||||
device_set_wakeup_capable(&pdev->dev, true);
|
||||
device_init_wakeup(&pdev->dev, true);
|
||||
|
||||
/* Perform initial detection */
|
||||
usb_extcon_detect_cable(&info->wq_detcable.work);
|
||||
|
||||
Reference in New Issue
Block a user