Skip to contentSkip to conversation

usb: xhci: plat: Enable runtime PM

PATCH Superseded Robert Foss 1 participant 2 messages Jan 25, 2017

Subsystems (2)

v7 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v7 cover usb: xhci: plat: Enable runtime PM

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(+)
Signature · 1 line
2.11.0.453.g787f75f05
#1 lore raw

PATCH v7 1/1 usb: xhci: plat: Enable async suspend/resume

From: Andrew Bresticker <[email protected]>

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.

---
 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/xhci-plat.c +1 -0
index 3cf8e120c620..4d6741a0d8f8 100644
@@ -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;
 
Signature · 1 line
2.11.0.453.g787f75f05