Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1458867 > unrolled thread
| Started by | robert.foss@collabora.com |
|---|---|
| First post | 2016-08-09 17:50 +0200 |
| Last post | 2016-08-09 17:50 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PACTH v4 0/2] usb: xhci: plat: Enable PM, async resume/suspend robert.foss@collabora.com - 2016-08-09 17:50 +0200
[PACTH v4 2/2] usb: xhci: plat: Enable async suspend/resume robert.foss@collabora.com - 2016-08-09 17:50 +0200
| From | robert.foss@collabora.com |
|---|---|
| Date | 2016-08-09 17:50 +0200 |
| Subject | [PACTH v4 0/2] usb: xhci: plat: Enable PM, async resume/suspend |
| Message-ID | <s4hrX-134-15@gated-at.bofh.it> |
From: Robert Foss <robert.foss@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.foss@collabora.com> - Added proper metadata tags to series Changes since v2: - Added missing changelog to cover-letter - Added error checking to pm_runtime_get_sync() Changes since v3: - Decrement usage_counter for failed pm_runtime_get*() calls Andrew Bresticker (1): usb: xhci: plat: Enable async suspend/resume Robert Foss (1): usb: xhci: plat: Enable runtime PM drivers/usb/host/xhci-plat.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) -- 2.7.4
[toc] | [next] | [standalone]
| From | robert.foss@collabora.com |
|---|---|
| Date | 2016-08-09 17:50 +0200 |
| Subject | [PACTH v4 2/2] usb: xhci: plat: Enable async suspend/resume |
| Message-ID | <s4hrY-134-25@gated-at.bofh.it> |
| In reply to | #1458867 |
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> Tested-by: Andrew Bresticker <abrestic@chromium.org> Tested-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Robert Foss <robert.foss@collabora.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 2755a20..55b2254 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.7.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web