| From 1c9d9aa71732d17d6d0653992f6332d52fa5b72d Mon Sep 17 00:00:00 2001 |
| From: Andrew Bresticker <abrestic@chromium.org> |
| Date: Fri, 7 Apr 2017 17:56:49 +0300 |
| Subject: [PATCH 176/286] 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> |
| (cherry picked from commit c70a1529b29cb1362ade5dd113313fb945e32c3e) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/host/xhci-plat.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| --- a/drivers/usb/host/xhci-plat.c |
| +++ b/drivers/usb/host/xhci-plat.c |
| @@ -258,6 +258,8 @@ static int xhci_plat_probe(struct platfo |
| if (ret) |
| goto dealloc_usb2_hcd; |
| |
| + device_enable_async_suspend(&pdev->dev); |
| + |
| return 0; |
| |
| |