aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2017-04-07 17:56:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 12:04:42 +0200
commitc70a1529b29cb1362ade5dd113313fb945e32c3e (patch)
treeb36741e8b173c6d789da668e8524b93c89150e36 /drivers/usb/host
parentusb: usbip: Remove unnecessary get_vdev() (diff)
downloadlinux-dev-c70a1529b29cb1362ade5dd113313fb945e32c3e.tar.xz
linux-dev-c70a1529b29cb1362ade5dd113313fb945e32c3e.zip
usb: xhci: plat: Enable async suspend/resume
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> Tested-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/xhci-plat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index f31b9dcdaf5b..62e71b8a8b55 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -277,6 +277,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
if (ret)
goto dealloc_usb2_hcd;
+ device_enable_async_suspend(&pdev->dev);
+
return 0;