summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2013-09-09 14:18:40 -0700
committerRobert Foss <robert.foss@collabora.com>2016-07-26 12:24:35 -0400
commitd99b4e78ee44daead8baf82421b6a2c183acbb64 (patch)
treec8ab437a6a6c8a4a9f4b3648b03a6c52905d8bce
parentd42601fa885e1777db3b494d5f3a13315410f162 (diff)
downloadlinux-patch_usb_xhci_plat_v2.tar.gz
linux-patch_usb_xhci_plat_v2.tar.xz
usb: xhci: plat: Enable async suspend/resumepatch_usb_xhci_plat_v2
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> Reviewed-by: Julius Werner <jwerner@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;