summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-10-31 06:59:12 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-31 06:59:12 -0700
commitcedaa7cef6f1134280e64db23df9d2be0e3cbbf1 (patch)
treeb228d7497bc734e6f40c47684eaadbe3bde9a72b
parentaae17b058208d55c8be2ecc6d7b81ae9ef7aa5e8 (diff)
parent9ed78090a05907dd07319a6eb507a65d41466410 (diff)
Merge "usb: xhci-plat: Enable wakeup for the root hubs"
-rw-r--r--drivers/usb/host/xhci-plat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 3e49861a09a2..5193bf5eb8c3 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -241,10 +241,14 @@ static int xhci_plat_probe(struct platform_device *pdev)
if (ret)
goto disable_usb_phy;
+ device_wakeup_enable(&hcd->self.root_hub->dev);
+
ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED | IRQF_ONESHOT);
if (ret)
goto dealloc_usb2_hcd;
+ device_wakeup_enable(&xhci->shared_hcd->self.root_hub->dev);
+
ret = device_create_file(&pdev->dev, &dev_attr_config_imod);
if (ret)
dev_err(&pdev->dev, "%s: unable to create imod sysfs entry\n",