summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2013-09-09 21:18:40 (GMT)
committerRobert Foss <robert.foss@collabora.com>2016-07-27 20:05:39 (GMT)
commit6e75176dc8ce8665e89da06be2206a7411c0b65c (patch)
treec8ab437a6a6c8a4a9f4b3648b03a6c52905d8bce
parentf8801f05fc8ac7a8fed0fbfed9def982db58c93a (diff)
downloadlinux-patch_usb_xhci_plat_v3.tar.gz
linux-patch_usb_xhci_plat_v3.tar.xz
usb: xhci: plat: Enable async suspend/resumepatch_usb_xhci_plat_v3
USB host controllers can take a significant amount of time to suspend and resume, adding several hundred miliseconds to the kernel resume time. Since the XHCI controller has no outside dependencies (other than clocks, which are suspended late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Tested-by: Andrew Bresticker <abrestic@chromium.org> Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--drivers/usb/host/xhci-plat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index fbd45c2..ce3375d 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -248,6 +248,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
pm_runtime_set_active(&pdev->dev);
pm_runtime_enable(&pdev->dev);
+ device_enable_async_suspend(&pdev->dev);
return 0;