From: Andrew Bresticker Date: Fri, 7 Apr 2017 14:56:49 +0000 (+0300) Subject: usb: xhci: plat: Enable async suspend/resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c70a1529b29cb1362ade5dd113313fb945e32c3e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss Reviewed-by: Baolin Wang Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- 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;