Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1449741
| From | robert.foss@collabora.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] usb: xhci: plat: Enable async suspend/resume |
| Date | 2016-07-25 20:50 +0200 |
| Message-ID | <rYT6W-81R-21@gated-at.bofh.it> (permalink) |
| References | <rYT6V-81R-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Andrew Bresticker <abrestic@chromium.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@chromium.org> --- 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 1927950..40d43c8 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -184,6 +184,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.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] usb: xhci: plat: Enable runtime PM robert.foss@collabora.com - 2016-07-25 20:50 +0200 [PATCH 2/2] usb: xhci: plat: Enable async suspend/resume robert.foss@collabora.com - 2016-07-25 20:50 +0200 Re: [PATCH 1/2] usb: xhci: plat: Enable runtime PM Greg KH <gregkh@linuxfoundation.org> - 2016-07-25 21:00 +0200
csiph-web