Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1578526 > unrolled thread

[PATCH RESEND v7 0/1] usb: xhci: plat: Enable runtime PM

Started byRobert Foss <robert.foss@collabora.com>
First post2017-02-10 16:00 +0100
Last post2017-02-10 16:00 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND v7 0/1] usb: xhci: plat: Enable runtime PM Robert Foss <robert.foss@collabora.com> - 2017-02-10 16:00 +0100
    [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume Robert Foss <robert.foss@collabora.com> - 2017-02-10 16:00 +0100

#1578526 — [PATCH RESEND v7 0/1] usb: xhci: plat: Enable runtime PM

FromRobert Foss <robert.foss@collabora.com>
Date2017-02-10 16:00 +0100
Subject[PATCH RESEND v7 0/1] usb: xhci: plat: Enable runtime PM
Message-ID<t9kQ2-4Jf-9@gated-at.bofh.it>
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() calls

Changes since v3:
- Decrement usage_counter for failed pm_runtime_get*() calls

Changes since v4:
- Added missing brackets

Changes since v5:
- Switched out atomic_dec() calls with pm_runtime_put() calls

Changes since v6:
- Rebased on v4.10-rc3
- Dropped "usb: xhci: plat: Enable async suspend/resume" since it is superseded by
  https://lkml.org/lkml/2016/12/13/32


Andrew Bresticker (1):
  usb: xhci: plat: Enable async suspend/resume

 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.11.0.453.g787f75f05

[toc] | [next] | [standalone]


#1578532 — [PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume

FromRobert Foss <robert.foss@collabora.com>
Date2017-02-10 16:00 +0100
Subject[PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume
Message-ID<t9kQ2-4Jf-17@gated-at.bofh.it>
In reply to#1578526
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 3cf8e120c620..4d6741a0d8f8 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -257,6 +257,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.453.g787f75f05

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web