public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v7 0/1] usb: xhci: plat: Enable runtime PM
@ 2017-01-25 17:51 Robert Foss
  2017-01-25 17:51 ` [PATCH i-g-t v7 1/1] usb: xhci: plat: Enable async suspend/resume Robert Foss
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Foss @ 2017-01-25 17:51 UTC (permalink / raw)
  To: mathias.nyman, gregkh, linux-usb, linux-kernel, Julius Werner,
	Andrew Bresticker, Felipe Balbi, Brian Norris, Baolin Wang
  Cc: Robert Foss

This series enables runtime PM and asynchronous resume/suspend support for
xhci-plat devices.

Due to Baolin Wangs series[1] part 1/2 of this series is now dropped.

[1] 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH i-g-t v7 1/1] usb: xhci: plat: Enable async suspend/resume
  2017-01-25 17:51 [PATCH i-g-t v7 0/1] usb: xhci: plat: Enable runtime PM Robert Foss
@ 2017-01-25 17:51 ` Robert Foss
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Foss @ 2017-01-25 17:51 UTC (permalink / raw)
  To: mathias.nyman, gregkh, linux-usb, linux-kernel, Julius Werner,
	Andrew Bresticker, Felipe Balbi, Brian Norris, Baolin Wang
  Cc: Robert Foss

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-25 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-25 17:51 [PATCH i-g-t v7 0/1] usb: xhci: plat: Enable runtime PM Robert Foss
2017-01-25 17:51 ` [PATCH i-g-t v7 1/1] usb: xhci: plat: Enable async suspend/resume Robert Foss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox