public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: xhci-plat: Enable USB 2.0 hardware LPM support for platform xHCs
@ 2013-08-20 23:21 Julius Werner
  2013-08-21 18:40 ` Sarah Sharp
  0 siblings, 1 reply; 20+ messages in thread
From: Julius Werner @ 2013-08-20 23:21 UTC (permalink / raw)
  To: Sarah Sharp
  Cc: linux-kernel, linux-usb, Greg Kroah-Hartman, Vincent Palatin,
	Benson Leung, Julius Werner

The driver methods required for hardware LPM have only been added to the
PCI version of the XHCI driver, for no apparent reason. They seem to
work just as well with the platform driver, so let's add them to give
more devices the chance for additional power savings. Tested on the DWC3
xHC of an Exynos5420.

Signed-off-by: Julius Werner <jwerner@chromium.org>
---
 drivers/usb/host/xhci-plat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 51e22bf..7f46b5d 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -80,6 +80,10 @@ static const struct hc_driver xhci_plat_xhci_driver = {
 	.hub_status_data =	xhci_hub_status_data,
 	.bus_suspend =		xhci_bus_suspend,
 	.bus_resume =		xhci_bus_resume,
+
+	/* LPM support */
+	.update_device =	xhci_update_device,
+	.set_usb2_hw_lpm =	xhci_set_usb2_hardware_lpm,
 };
 
 static int xhci_plat_probe(struct platform_device *pdev)
-- 
1.7.12.4


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

end of thread, other threads:[~2013-12-02 21:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-20 23:21 [PATCH] usb: xhci-plat: Enable USB 2.0 hardware LPM support for platform xHCs Julius Werner
2013-08-21 18:40 ` Sarah Sharp
2013-08-21 21:43   ` Julius Werner
2013-08-22  0:45     ` Sarah Sharp
2013-08-22  2:12       ` Greg Kroah-Hartman
2013-08-22  4:22       ` Julius Werner
2013-08-22  5:11         ` Paul Zimmerman
2013-08-26 19:14           ` Sarah Sharp
2013-08-26 19:37             ` Paul Zimmerman
2013-08-26 19:53               ` Paul Zimmerman
2013-08-28 21:51               ` Sarah Sharp
2013-08-28 22:15                 ` Paul Zimmerman
2013-08-28 23:08                   ` Julius Werner
2013-08-29 17:18                     ` Sarah Sharp
2013-08-29 18:06                       ` Julius Werner
2013-08-29 18:40                         ` Paul Zimmerman
2013-11-06 20:33                           ` Julius Werner
2013-12-02 21:50                             ` Julius Werner
2013-08-29 17:42                   ` Sarah Sharp
2013-08-29 18:11                     ` Paul Zimmerman

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