[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161201214604.20717-3-robert.foss@collabora.com>
Date: Thu, 1 Dec 2016 16:46:04 -0500
From: Robert Foss <robert.foss@...labora.com>
To: robert.foss@...labora.com, mathias.nyman@...el.com,
gregkh@...uxfoundation.org, Julius Werner <jwerner@...omium.org>,
Andrew Bresticker <abrestic@...omium.org>,
Felipe Balbi <felipe.balbi@...ux.intel.com>,
Brian Norris <briannorris@...omium.org>,
Baolin Wang <baolin.wang@...aro.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH v7 2/2] usb: xhci: plat: Enable async suspend/resume
From: Andrew Bresticker <abrestic@...omium.org>
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@...omium.org>
Tested-by: Andrew Bresticker <abrestic@...omium.org>
Tested-by: Robert Foss <robert.foss@...labora.com>
Signed-off-by: Robert Foss <robert.foss@...labora.com>
---
drivers/usb/host/xhci-plat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index ba4efe74f537..c35b7fe3c999 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;
--
2.11.0
Powered by blists - more mailing lists